cerberustesting / cerberus-core

The Open Source Test Automation Platform.
https://cerberus-testing.com
GNU General Public License v3.0
321 stars 103 forks source link

Cerberus Automation Mobile - scrollTo doesn't work with web view #1853

Open Ryu26 opened 5 years ago

Ryu26 commented 5 years ago

When we add capability "autoWebview" to our robot, we can't launch our test automation.

And, it is not possible to automate webview, for example, the "Scroll to" not work on webviews

nicodeur commented 5 years ago

Hello,

I just test it with @Ryu26. Switch to web view works fine.

But It exists a problem with scrollTo action with web view. On web view, all xml page is loading (visible and no visible element). On native screen, only visible element si loading. ScrollToscroll wile element is present on xml page. So with webview, scrollTo see the element non visible on screen, and can't scroll to it.

Do Appium propose a method to know if an element is visible or not ?

A workaround is to use the swipeaction