landryshuai / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Incorrect subsequent runs on WebView test #688

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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
2. 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 reported on code.google.com by minsche...@googlemail.com on 29 Jun 2015 at 5:39