Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

robotium html5 page alert not pop up #602

Open
GoogleCodeExporter opened this issue Aug 18, 2015 · 6 comments
Open

robotium html5 page alert not pop up #602

GoogleCodeExporter opened this issue Aug 18, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

is there anyone know how to deal with this problem

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant