-
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
Scrolling in winappdriver #1538
Comments
WAD supports auto scroll max till 40 elements. What is been shown in inspect for the vertical scroll bar. |
@anunay1 |
can you try this: ele= driver.find_element_by_name('last element in your list') or else: ele= driver.find_element_by_name('last element in your list') |
Hi @krevathi1912 If I am not mistaken, Winappdriver supports scrolling by Touch API. You may refer to examples provided by the team: I would suggest checking flick api as well. From python, you can import TouchActions by the following line: |
@shoaibmansoor |
@krevathi1912 Windows 10 or servers are touch-enabled as far as I know. Are you using something similar? |
@krevathi1912 is it a UWP application or WPF |
@anunay1 its UWP application developed using xamarin technology |
Did you try the page down thing |
Did you try hovering the mouse over the vertical scroll bar? |
Yes, Keys.PAGE_DOWN is working. Thank you very much |
I am not sure how to achieve this, request your help. |
@shoaibmansoor |
@shoaibmansoor |
change the value to 200 and use a while loop to check if the element is displayed, break and then click the element. |
@anunay1 |
@anunay1 @shoaibmansoor When the element is not visible it throws no such element exception and not returning False value, used driver.find_element_by_accessibility_id("value").is_displayed() method |
You can do the below: |
@anunay1 |
Unfortunately I do not have any application like that to test, please ping me at anunayathakur1@gmail.com we can have a hangout all. |
@anunay1 Thank you very much |
results in:
|
ele.SendKeys(Keys.PageUp); |
https://github.com/GregsStack/InputSimulatorStandard This fork supports scan codes, making it compatible with many applications that the original library does not support. The target framework has been changed to .Net Standard to support the usage with .Net Core and .Net Framework projects on Windows. Simulates mouse vertical wheel scroll gesture. Scroll up to target element. michaelnoonan/inputsimulator#14 (comment)
It work well. If you want to use |
@krevathi1912 : Can you help me here which package you are using to import TouchActions? |
@anunay1 Even i am getting this error java.lang.ClassCastException: class io.appium.java_client.windows.WindowsDriver cannot be cast to class org.openqa.selenium.interactions.HasTouchScreen (io.appium.java_client.windows.WindowsDriver and org.openqa.selenium.interactions.HasTouchScreen are in unnamed module of loader 'app') |
what is your driver here ? is it a windowsdriver?or a webdriver? |
Hello dear community.@krevathi1912 I have imported in my maven the following dependencies maybe the problem is here who can clarify |
I've tried all of the above, but none of them can solve the problem.After my research, I solved the problem. |
For Appium WinAppDriver I tried this and it works ` bool act = true;
` |
I am automating UWP app using appium+winappdriver
Winappdirver version - 1.2 RC
Our app has a page, where certain elements will be loaded only on scrolling down the page. There is a vertical scroll bar element, but it is getting enabled only when mouse cursor is moved over it. Please let me know how to handle scrolling in this case. I am using python language
The text was updated successfully, but these errors were encountered: