nerfiaux / robotium

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

robotium html5 page alert not pop up #602

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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:
<script type="text/javascript">
function display_alert()
  {
  alert("I am an alert box!!")
  }
</script>
</head>
<body>

<input type="button" id="alert" onclick="display_alert()"
value="Display alert box" />

Original issue reported on code.google.com by carrot11...@gmail.com on 6 May 2014 at 8:03

GoogleCodeExporter commented 9 years ago
Thanks for reporting this. Would it be possible for you to share an app that 
exhibits this issue?

Original comment by renasr...@gmail.com on 6 May 2014 at 8:07

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

Original comment by carrot11...@gmail.com on 6 May 2014 at 11:32

GoogleCodeExporter commented 9 years ago
It seems as if the URL is not working. Can you please provide another one?

Original comment by renasr...@gmail.com on 8 Jun 2014 at 2:04

GoogleCodeExporter commented 9 years ago
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. 

Original comment by luckynav...@gmail.com on 9 Jun 2014 at 10:12

GoogleCodeExporter commented 9 years ago
having the same problem here for both alert("...") and for confirm("....")

Original comment by sirishaj...@gmail.com on 17 Sep 2014 at 11:03

GoogleCodeExporter commented 9 years ago
is there anyone know how to deal with this problem

Original comment by xiang2...@163.com on 5 Mar 2015 at 3:56