-
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(web): support for switching browsing context
re #805
- Loading branch information
Showing
9 changed files
with
572 additions
and
221 deletions.
There are no files selected for viewing
365 changes: 214 additions & 151 deletions
365
integration/web-specs/spec/screenplay/models/Page.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
21 changes: 21 additions & 0 deletions
21
integration/web-specs/static/screenplay/models/page/main_page.html
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,21 @@ | ||
<html lang="en"> | ||
<head> | ||
<title>Main page title</title> | ||
</head> | ||
<body> | ||
<h1>Main page</h1> | ||
<ul> | ||
<li><a href="/screenplay/models/page/new_tab.html" target="_blank" id="new-tab-link">open new tab</a></li> | ||
<li><a href="javascript:void(0)" onclick="popup()" id="new-popup-link">open new popup</a></li> | ||
</ul> | ||
|
||
|
||
<script> | ||
function popup() { | ||
var w = window.open('about:blank', 'popup-window', 'width=512,height=256'); | ||
w.document.write('<h1>Example pop-up window</h1>'); | ||
w.document.close(); | ||
} | ||
</script> | ||
</body> | ||
</html> |
8 changes: 8 additions & 0 deletions
8
integration/web-specs/static/screenplay/models/page/new_tab.html
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,8 @@ | ||
<html lang="en"> | ||
<head> | ||
<title>New tab title</title> | ||
</head> | ||
<body> | ||
<h1>New tab</h1> | ||
</body> | ||
</html> |
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
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
Oops, something went wrong.