-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"WebDriver' object has no attribute 'w3c'" error is raised when using ActionChains #1784
Comments
@Shakevg can you please help with that issue? |
The WinAppDriver version which I am using is |
@liljohnak what do you mean by saying |
Current 5.0 Appium is using w3c. It is a TODO for the next WinAppDriver release. To fix your problem you'll need to downgrade. |
@liljohnak sorry, but I am not sure I understood your answer, When I type
The driver of what you are referring to? Thanks! |
@liljohnak can you please advise on that issue? |
@liljohnak coding lang is Python, and my current webdriver ( |
@liljohnak Python client does not have any 5 version, that is only for C#. @bwomsm1 please downgrade the appium python client to version 2.3.0 and check. Also what argument are you passing in the action chain webelement or driver. |
more information can be found at |
@anunay1 tried as you suggested but I'm getting the following error message: failed: ModuleNotFoundError: No module named 'selenium.webdriver.common.options' Python modules: Please advise how to proceed |
@anunay1 downgrading to appium Can you please advise? |
@bwomsm1 It sounds stupid but can you try uninstalling and reinstalling the python appium client. |
:) not stupid at all, I think I understand why you are saying so. |
@bwomsm1 Can you please check
|
For what purpose you need this module? |
@anunay1 with What is the rule here? when do I use |
There is no rule as such, this is just a work around unless win app driver is W3C compliant |
ok, but still I was not able to perform "mouse pointer move" with |
I don't understand what you are referring to, you need to move to the element and click the element or else something else or just move to the element. |
S
***@***.***
…Sent from my Galaxy
-------- Original message --------
From: ANUNAYA THAKUR ***@***.***>
Date: 9/11/22 8:35 AM (GMT-08:00)
To: microsoft/WinAppDriver ***@***.***>
Cc: Jonathan Neal ***@***.***>, Mention ***@***.***>
Subject: Re: [microsoft/WinAppDriver] "WebDriver' object has no attribute 'w3c'" error is raised when using ActionChains (Issue #1784)
@bwomsm1<https://github.com/bwomsm1> Can you please check
from appium.webdriver.common.touch_action import TouchAction import the library
actions = TouchAction(driver)
actions.move_to(ele).perform()
actions.tap(ele)
—
Reply to this email directly, view it on GitHub<#1784 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AE6MNO4IGJC2URDVVVZU36DV5X32VANCNFSM6AAAAAAQEGQRQU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
@anunay1 @liljohnak any updates about this ticket? |
So I've spent entirely too long working on this, you'll need to move back to at least appium-python-client 1.3.0 and selenium 3.14.1. You'll need to revert your AppiumBy back to MobileBy and options back to desired capabilities. They've completely removed the ability to use the old json format in the new versions and you won't be able to upgrade one without the other (some converters have been completely ripped out) Hopefully when they one day update the WinAppDriver it'll support the new w3c standard. |
@anunay1 any news about this ticket? |
@liljohnak can you share when the next release with |
Per @DHowett: |
(This is in a shelved changeset on my machine, as things have been unexpectedly busy since I started working on it.) |
@liljohnak @DHowett thank you both, I will follow on both this thread and #1610 for updates. |
I am tying to call to
ActionChains
method calledmove_to_element
, but fortunately error is raised after a successful alloc of ActionChains:AttributeError: 'WebDriver' object has no attribute 'w3c'
My python libs are:
Appium-Python-Client==2.4.1
selenium==3.141.0
Capabilities:
The text was updated successfully, but these errors were encountered: