- Use page objects
- Avoid protocol methods and prefer commands
- Avoid timeouts
- Avoid caching elements
- Avoid arbitrary pause() calls
- Use mocks
- Use waitFor, waitForVisible etc (TODO)
- Other gotchas
- Shadow DOM
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
My Awesome CLI thing | |
Start* | |
input event -> | |
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
2019-02-28T00:12:02.744Z DEBUG wdio-config: @wdio/sync found, running tests synchronous | |
2019-02-28T00:12:02.920Z INFO wdio-local-runner: Run worker command: run | |
2019-02-28T00:12:02.963Z DEBUG wdio-local-runner:utils: init remote session | |
2019-02-28T00:12:02.985Z INFO webdriver: [POST] http://127.0.0.1:4444/wd/hub/session | |
2019-02-28T00:12:02.985Z INFO webdriver: DATA { capabilities: { alwaysMatch: { browserName: 'safari' }, firstMatch: [ {} ] }, | |
desiredCapabilities: { browserName: 'safari' } } | |
2019-02-28T00:12:03.803Z INFO webdriver: COMMAND navigateTo("https://sm-element-demo.firebaseapp.com/") | |
2019-02-28T00:12:03.804Z INFO webdriver: [POST] http://127.0.0.1:4444/wd/hub/session/56E8B029-F7BF-4D84-896A-D94ABC121975/url | |
2019-02-28T00:12:03.804Z INFO webdriver: DATA { url: 'https://sm-element-demo.firebaseapp.com/' } | |
2019-02-28T00:12:04.435Z INFO webdriver: COMMAND findElement("css selector", "blog-app") |
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
cases list* | |
open and assign case -> open case | |
open case | |
success -> assign case | |
failure -> keep retrying open? | |
assign case | |
success -> done | |
failure -> keep retrying assign? | |
keep retrying open? | |
open attempts remaining? -> open case |
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
initial | |
load list -> loading list | |
loading list | |
success -> list | |
error -> error loading list | |
cancel -> exit | |
list | |
select item -> loading item details | |
error loading list | |
retry -> loading list |