RobotiumTech / robotium

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

robotium html5 page alert not pop up #681

Open renas opened 9 years ago

renas commented 9 years ago

From carrot11...@gmail.com on May 06, 2014 01:03:37

What steps will reproduce the problem? 1.load a hybird app 2.click a button with a alert What is the expected output? What do you see instead? the alert should be popped up,however the alert was not be popped up What version of the product are you using? On what operating system? robotium 5.1,win 7 Please provide any additional information below. here is the code: public void testSearchRobotium() { //Waits for the tag: 'DIV'. solo.waitForWebElement(By.tagName("html")); By buttonSearch = By.id("alert"); solo.clickOnWebElement(buttonSearch);

h5 page:

_Original issue: http://code.google.com/p/robotium/issues/detail?id=602_
renas commented 9 years ago

From renasr...@gmail.com on May 06, 2014 01:07:26

Thanks for reporting this. Would it be possible for you to share an app that exhibits this issue?

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

renas commented 9 years ago

From carrot11...@gmail.com on May 06, 2014 04:32:28

just use the HybirdApp downloaded from website,just modify this code: mainWebView.loadUrl("http://10.155.2.7:8099/lg/h5.html");

renas commented 9 years ago

From renasr...@gmail.com on June 08, 2014 07:04:51

It seems as if the URL is not working. Can you please provide another one?

renas commented 9 years ago

From luckynav...@gmail.com on June 09, 2014 03:12:55

Hi, I am able to see it working with me, can you please share some url having specific alert or some more useful info. Things seems good to me.

renas commented 9 years ago

From sirishaj...@gmail.com on September 17, 2014 04:03:22

having the same problem here for both alert("...") and for confirm("....")

renas commented 9 years ago

From xiang2...@163.com on March 04, 2015 19:56:04

is there anyone know how to deal with this problem