Skip to content

robotium html5 page alert not pop up #602

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions