Skip to content

Commit

Permalink
feat(executor/web): improve web executor documentation
Browse files Browse the repository at this point in the history
* Improve web executor documentation to detail how integrate chrome features like headless mode and disable flags
Signed-off-by: Kevin RAMAGE <[email protected]>
  • Loading branch information
kevinramage authored Nov 9, 2020
1 parent cebd878 commit a72de4f
Showing 1 changed file with 59 additions and 1 deletion.
60 changes: 59 additions & 1 deletion executors/web/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ testcases:
ConfirmPopup: true
```
History actions allow you to manipulate browser history actions. The following action are available:
History actions allow you to manipulate browser history actions. The following actions are available:
* back
* refresh
* forward
Expand Down Expand Up @@ -271,3 +271,61 @@ testcases:
* result.timehuman
* result.title
* result.find
## Chrome
This section describes some features specific to the Chrome browser
### CI
If you want to include Chrome Driver tests in your integration pipeline, you must execute Chrome in headless mode.
Example
```yaml
name: TestSuite Web
testcases:
- name: Test disable same site security
context:
type: web
width: 1920
height: 1080
driver: chrome
args:
- 'headless'
timeout: 60
debug: true
steps:
- action:
navigate:
url: https://www.google.fr
```
### Flags
In Chrome, you can turn experimental features on or off to test the behavior of upcoming features.
You can do this manually with chrome://flags url with Chrome browser.
In Venom, to enable a feature, add an instance of the enable-features argument.
To disable a feature, add a disable-features argument instance
Example
```yaml
name: TestSuite Web
testcases:
- name: Test disable same site security
context:
type: web
width: 1920
height: 1080
driver: chrome
args:
- 'disable-features=SameSiteByDefaultCookies'
- 'enable-features=CookiesWithoutSameSiteMustBeSecure'
timeout: 60
debug: true
steps:
- action:
navigate:
url: https://samesite-sandbox.glitch.me/
- action:
wait: 5
```

0 comments on commit a72de4f

Please sign in to comment.