MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / alertPage

Method alertPage

java/test/org/openqa/selenium/AlertsTest.java:62–68  ·  view source on GitHub ↗
(String alertText)

Source from the content-addressed store, hash-verified

60 }
61
62 private String alertPage(String alertText) {
63 return appServer.create(
64 new Page()
65 .withTitle("Testing Alerts")
66 .withBody(
67 "<a href='#' id='alert' onclick='alert(\"" + alertText + "\");'>click me</a>"));
68 }
69
70 private String promptPage(String defaultText) {
71 return appServer.create(

Calls 3

withBodyMethod · 0.80
withTitleMethod · 0.80
createMethod · 0.65

Tested by

no test coverage detected