replaycli-py/api/chrome/features/chrome.feature

30 lines
1.0 KiB
Gherkin
Raw Normal View History

2022-01-05 13:30:34 +00:00
Feature: The Chrome API client
2022-01-05 15:22:36 +00:00
Scenario: Using the Chrome.start method
2022-01-05 13:30:34 +00:00
Given the Chrome client
2022-01-05 15:22:36 +00:00
When the start method is called
Then Google Chrome must open
2022-01-05 15:22:36 +00:00
Scenario: Using the Chrome.start_headless method
Given the Chrome client
When the start_headless method is called
Then Google Chrome must open headless
2022-01-05 15:22:36 +00:00
Scenario: Using the Chrome.stop method
Given the Chrome client
And a Chrome instance
When the stop method is called upon it
Then this Google Chrome instance must close
Scenario: Using the Chrome.new method
Given the Chrome client
And a Chrome instance
When the new method is called
Then a new Google Chrome tab with the url given must open in the instance
Scenario: Using the Chrome.close method
Given the Chrome client
And a Chrome instance
And the id of a new Google Chrome tab opened
When the close method is called upon the tab id
Then the tab must close