-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Playwright v15 and trace log (#130)
* Bump playwright from 1.11.1 to 1.15.0 Bumps [playwright](https://github.com/Microsoft/playwright-python) from 1.11.1 to 1.15.0. - [Release notes](https://github.com/Microsoft/playwright-python/releases) - [Commits](microsoft/playwright-python@v1.11.1...v1.15.0) --- updated-dependencies: - dependency-name: playwright dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Add missing playwright dependencies * Init support trace file * Update default browser for chrome * Update pythonpackage.yml * Update force tag Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: DESKTOP\atthaboon.s <atthaboon.s@qahive.com>
- Loading branch information
1 parent
a1bfe69
commit 855fd65
Showing
13 changed files
with
120 additions
and
14 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
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,33 @@ | ||
*** Settings *** | ||
Library PuppeteerLibrary | ||
Test Teardown Close All Browser | ||
Suite Teardown Close Puppeteer | ||
|
||
*** Variables *** | ||
${DEFAULT_BROWSER} chrome | ||
|
||
|
||
*** Test Cases *** | ||
Tracing log without path | ||
${BROWSER} = Get variable value ${BROWSER} ${DEFAULT_BROWSER} | ||
Open browser to test page http://127.0.0.1:7272/login-form-example.html | ||
Run Keyword If '${BROWSER}' != 'ptchrome' Start tracing | ||
Select Checkbox id=exampleCheck1 | ||
Checkbox Should Be Selected id=exampleCheck1 | ||
Run Keyword If '${BROWSER}' != 'ptchrome' Stop Tracing | ||
|
||
Tracing log with specific path | ||
${BROWSER} = Get variable value ${BROWSER} ${DEFAULT_BROWSER} | ||
Open browser to test page http://127.0.0.1:7272/login-form-example.html | ||
Run Keyword If '${BROWSER}' != 'ptchrome' Start tracing | ||
Select Checkbox id=exampleCheck1 | ||
Checkbox Should Be Selected id=exampleCheck1 | ||
Run Keyword If '${BROWSER}' != 'ptchrome' Stop Tracing trace2.zip | ||
|
||
*** Keywords *** | ||
Open browser to test page | ||
[Arguments] ${url} | ||
${BROWSER} = Get variable value ${BROWSER} ${DEFAULT_BROWSER} | ||
${HEADLESS} Get variable value ${HEADLESS} ${False} | ||
&{options} = create dictionary headless=${HEADLESS} | ||
Open browser ${url} browser=${BROWSER} options=${options} |
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
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
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,6 @@ | ||
versioneer>=0.18 | ||
robotframework>=3.2.1 | ||
playwright==1.11.1 | ||
playwright==1.15.0 | ||
pyppeteer==0.2.5 | ||
# git+https://github.com/qahive/pyppeteer.git@dev2 | ||
robotframework-libdoc2json>=0.4 |
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