-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
71 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Feature: Should See Assertion | ||
|
||
This feature supports visible/invisible assertion steps | ||
|
||
Scenario: Should See Element | ||
Given I am a anonymous user | ||
When I navigate to "/js.html" | ||
And I submit "submit" id | ||
Then I should see "Done!" in "p" id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Test server</title> | ||
<style> | ||
h1 { | ||
text-align: center; | ||
} | ||
|
||
body { | ||
font-family: Tahoma, Geneva, Verdana, sans-serif; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<form id="myform" onsubmit="javascript: return formSubmit();"> | ||
<label for="timeout">Timeout(ms)</label> | ||
<input id="timeout" name="timeout" value="300"> | ||
<input type="submit" name="submit" id="submit" value="Submit"> | ||
</form> | ||
<p id="p">Hello!</p> | ||
<script> | ||
function doIt(t) { | ||
var ele = document.getElementById("p"); | ||
ele.innerHTML = t === undefined ? "Done!" : t; | ||
} | ||
|
||
function formSubmit() { | ||
doIt("Hello!"); | ||
var ele = document.getElementById("timeout"); | ||
var timeout = parseInt(ele.value); | ||
setTimeout(doIt, timeout); | ||
return false; | ||
} | ||
</script> | ||
</body> | ||
|
||
</html> |