-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from revjet-qa/feature/open-close-tabs
"I close current tab" and "I open new window" steps added
- Loading branch information
Showing
4 changed files
with
49 additions
and
0 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,11 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>NEW PAGE FOR THE WDIO-STEPS</title> | ||
<link rel="stylesheet" href="styles/style.css"> | ||
</head> | ||
<body> | ||
<div id="new-header">New page header</div> | ||
<div id="new-page">New page</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
let e = {}; | ||
|
||
e.txtHeader = '//*[@id="header"]'; | ||
e.txtNewHeader = '//*[@id="new-header"]'; | ||
e.divTimeout = '//*[@id="div_timeout"]'; | ||
e.div = '//div'; | ||
|
||
module.exports = e; |
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,22 @@ | ||
@Fast | ||
@Window | ||
@Tab | ||
|
||
Feature: Window/tab | ||
In order to check window/tab manipulation | ||
As a developer | ||
I want to open/close window/tab and check that it works properly | ||
|
||
Scenario: Open new window step should open new empty tab | ||
Given I open "http://localhost:9000/new-page.html" | ||
Then txtNewHeader from main page should be present | ||
When I open new window | ||
Then div from main page should not be present | ||
And I close current tab | ||
|
||
Scenario: Close current step should close recently opened tab | ||
Given I open "http://localhost:9000" | ||
When I open new window | ||
When I close current tab | ||
Then txtHeader from main page should be present | ||
|