RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Incorrect subsequent runs on WebView test #767

Closed renas closed 9 years ago

renas commented 9 years ago

From minsche...@googlemail.com on June 29, 2015 10:39:26

What steps will reproduce the problem? 1. First time test webview elements by solo.typeTextInWebElement(username, "Tom") and solo.typeTextInWebElement(password, "123") correctly entered these two editText and takes your to next page

  1. But second time test now WebElements are incorrectly entered, i.e Tom123 are entered as username

What is the expected output? username Tom (on first time run) password 123

What do you see instead? username Tom123 (on second run)

So my thinking was that tearDown not was correct?

@After public void tearDown() throws Exception {

    solo.clearTextInWebElement(By.id("username_or_email"));
    solo.clearTextInWebElement(By.id("password"));
    solo.finishOpenedActivities();

What version of the product are you using? 5.4.1

On what operating system? Android Studio Mac OSX Yosemite Please provide any additional information below.

Original issue: http://code.google.com/p/robotium/issues/detail?id=688

renas commented 9 years ago

From renasr...@gmail.com on July 08, 2015 21:50:08

Please try to use the waitForMethods.

Status: WontFix
Owner: renasr...@gmail.com