oscarxie / android-test-kit

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

WebView support #21

Closed GoogleCodeExporter closed 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

GoogleCodeExporter commented 9 years ago
@Espresso Team
What about this issue ? Are you working on it ? 

Original comment by lukasz.n...@wikia-inc.com on 20 Mar 2015 at 11:33

GoogleCodeExporter commented 9 years ago
The feature is still being worked on. Some details were provided in this 
podcast.
http://androidbackstage.blogspot.com/2015/04/episode-25-espresso.html

Original comment by m...@bootstraponline.com on 26 Apr 2015 at 7:49

GoogleCodeExporter commented 9 years ago
Espresso-Web was released last week in the Espresso 2.2 release.

Original comment by slinz...@google.com on 8 Jun 2015 at 3:36

GoogleCodeExporter commented 9 years ago
Fantastic! Any examples that we can refer?

Original comment by yashodha...@gmail.com on 8 Jun 2015 at 5:03

GoogleCodeExporter commented 9 years ago
Are there any release notes or documentation about this? I can't find anything 
about the latest release at all.

Original comment by gbbrin...@gmail.com on 8 Jun 2015 at 6:57

GoogleCodeExporter commented 9 years ago
I think someone mentioned on another thread that they silently released all of 
this for the I/O conference and are working on officially announcing the latest 
developments related to Espresso. 

Meanwhile, Refer 
https://developer.android.com/reference/android/support/test/package-summary.htm
l

Look for android.support.test.espresso.web package in the Android APIs pane on 
the left. 

Some examples on how to use it would be nice though.

Original comment by yashodha...@gmail.com on 8 Jun 2015 at 7:06

GoogleCodeExporter commented 9 years ago
Anybody found actual documentation or using examples? Could you send links?

Original comment by igor.shi...@gmail.com on 22 Jun 2015 at 12:54

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I have seen this example 
https://github.com/hotchemi/espresso-tasting/blob/master/app/src/androidTest/jav
a/espresso/tasting/webview/ShowWebViewActivityTest.java but could do with more 
comprehensive ones. Trying to work out how to validate some text within a 
element!!

Original comment by emlloy...@gmail.com on 7 Aug 2015 at 12:33