SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Android driver does not close alert windows. #4080

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 4080

Android driver does not close alert windows.
Steps to reproduce:
1. Copy testpage2.htm to android device/emulator SD card ( file is attached )
2. Run Main.java code. ( test project is attached )
3. See Android device/emulator's screen, the alert window is still here.

Expected result:
After code execution alert windows should be closed.

Selenium version: 2.21 ( latest for android for now )
OS: windows 7 Professional edition 32 bit.
Browser: Android 4.0.3

Code in Main.java:
    WebDriver driver = new AndroidDriver();
        String path = "file:///sdcard/" + "testpage2.htm".replace("\\", "/");
        driver.get(path);
        driver.findElement(By.id("btn3")).click();
        driver.switchTo().alert().accept();

Reported by michael.cherkasov on 2012-06-13 08:23:09


lukeis commented 8 years ago
May be this is duplicate for http://code.google.com/p/selenium/issues/detail?id=3839
, but this one has better description:)

Reported by michael.cherkasov on 2012-06-13 08:26:54

lukeis commented 8 years ago

Reported by barancev on 2012-06-19 22:45:32

lukeis commented 8 years ago
Issue 4109 has been merged into this issue.

Reported by barancev on 2012-06-19 22:45:52

lukeis commented 8 years ago
Issue 4277 has been merged into this issue.

Reported by barancev on 2012-07-21 16:50:06

lukeis commented 8 years ago
I am also facing the same problem

Reported by deepak.pramod on 2012-09-10 08:36:37

lukeis commented 8 years ago
I also have this problem. That pop-up windows stay open even after session is closed.

Reported by i.edrennikov@corp.badoo.com on 2012-11-09 13:24:54

lukeis commented 8 years ago
Any update on this? over a year now and still no fix? Alerts simply don't work on AndroidDriver()

Reported by Alex.Schwantes on 2013-10-24 04:06:31

lukeis commented 8 years ago
Selenium project no longer supports the AndroidDriver.

Please use Selendroid instead:
http://selendroid.io/webview.html

And log any issues against that project:
https://github.com/selendroid/selendroid/issues

Reported by luke.semerau on 2013-12-26 21:57:35

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:15:39