skyisle / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
1 stars 0 forks source link

WebView support #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It'd be nice to have WebView support.
https://groups.google.com/forum/#!searchin/android-test-kit-discuss/webview/andr
oid-test-kit-discuss/KO42yKXYk00/lbPJyzZndvUJ

Original issue reported on code.google.com by m...@bootstraponline.com on 14 Nov 2013 at 6:50

GoogleCodeExporter commented 9 years ago
Agreed. We are planning to add it. If you have specific requirement (i.e. what 
you want and do not want to do with a WebView), let us know.

Original comment by vale...@google.com on 14 Nov 2013 at 6:52

GoogleCodeExporter commented 9 years ago

Original comment by vale...@google.com on 14 Nov 2013 at 6:53

GoogleCodeExporter commented 9 years ago
For Woven, I'd like to be able to log into various 3rd party photo services 
such as Picasa and Facebook.
https://play.google.com/store/apps/details?id=com.litl.FireDrill

The typical flow is:
- Page loads
- Find the first textfield and enter the username
- Find the second textfield and enter the password
- Find the submit button and press it
- OAuth page loads
- Find the authorize button and press it

Original comment by medwa...@aquent.com on 14 Nov 2013 at 7:02

GoogleCodeExporter commented 9 years ago
Thanks. Keep the feedback coming.

What are your thoughts about the WebDriver API? Would you like the ability to 
get a driver object and use the full WebDriver API or would you prefer if 
Espresso provided native support for WebView operations?

One tricky thing with WebViews - it's harder to synchronize the actions. 
WebDriver "solves" this problem by wait/retry mechanisms, but this is far from 
ideal.

Original comment by vale...@google.com on 14 Nov 2013 at 9:25

GoogleCodeExporter commented 9 years ago
I really like the WebDriver API and am using that abstraction for native 
testing. Testing Woven on iOS & Android using Appium & WebDriver was featured 
at GTAC 2013.
http://www.youtube.com/watch?v=1J0aXDbjiUE

The iOS webview login code for Picasa looks like this:
https://gist.github.com/q-a/3f36d9f5da748b8690f7

There are a lot of waits due to WebDriver. For Android I'm using uiautomator 
and that has no webview support at all. Anything Espresso provides in this area 
will be greatly appreciated. In the ideal world, Espresso would have the full 
WebDriver API.

Original comment by medwa...@aquent.com on 14 Nov 2013 at 9:37

GoogleCodeExporter commented 9 years ago
I'd also love to see a WebDriver implementation of webview support.

Original comment by jlipps on 14 Nov 2013 at 10:26

GoogleCodeExporter commented 9 years ago
A WebDriver implementation with webview support is considered a must-have for 
us.

Original comment by dan.dove...@lookout.com on 14 Jan 2014 at 12:44

GoogleCodeExporter commented 9 years ago
Agreed. Since our app uses, most unfortunately, an oAuth2 WebView for login, 
and some other areas, support for WebView is an absolute must. Thanks chaps.

Original comment by my.name....@gmail.com on 30 Jan 2014 at 3:07

GoogleCodeExporter commented 9 years ago
Could you share any info regarding when the new version of espresso (with web 
view support) is coming? Thanks. 

Original comment by lyfort...@gmail.com on 27 Mar 2014 at 11:19

GoogleCodeExporter commented 9 years ago
when udate new version?
when provide webView test?

Original comment by fanhanqi...@gmail.com on 14 Apr 2014 at 4:45

GoogleCodeExporter commented 9 years ago
I do want the webview supported apis, such as load a url and get current url, 
press the element(if  can specify linked element is better) on webview...
what is the release time of the webview support version?

Original comment by xnfree...@gmail.com on 15 May 2014 at 3:50

GoogleCodeExporter commented 9 years ago
any update on this?

Original comment by moritzb...@googlemail.com on 23 Sep 2014 at 12:43

GoogleCodeExporter commented 9 years ago
The app I am working with uses a webview for log in .. has support been added 
for this? 

Original comment by paul.and...@gmail.com on 10 Nov 2014 at 2:55

GoogleCodeExporter commented 9 years ago
Also need support for testing WebViews for log-ins.

Original comment by adamwbr...@gmail.com on 30 Dec 2014 at 12:19