Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support different browsers at playwright starts #398

Merged
merged 12 commits into from
Jul 15, 2024

Conversation

jruizg23
Copy link

@jruizg23 jruizg23 commented Jul 8, 2024

Implements the method to start different browser types with these options.

New options sections can be defined in the properties.cfg:

[PlaywrightBrowserOptions] >> Playwright options for the Browser instance (check here: https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch).
ChromeArguments can be defined in the property "args" or in the old section. In this case, ChromeArguments replaces the defined arguments in args. The same with FirefoxArguments.
FirefoxPreferences works in the same way but the property used is firefox_user_prefs.
ChromeExtensions are added as arguments. Firefox Extensions are not supported in playwright.

[PlaywrightContextOptions] >> Playwright options for the Context instance (check here: https://playwright.dev/python/docs/api/class-browser#browser-new-context)

[PlawrightPageOptions] >> Playwright options for the Page instance (check here: https://playwright.dev/python/docs/api/class-browser#browser-new-page)

It's possible to execute a browser in persistent mode passing the property user_data_dir in PlaywrightContextOptions. In these case, the session will be persisted and used by all the pages. In this case PlawrightBrowserOptions are omitted, only context options are available (check options here: https://playwright.dev/python/docs/api/class-browsertype#browser-type-launch-persistent-context)

robertomier and others added 3 commits May 29, 2024 10:02
#388)

* chore: base code for selecting in an array using expresions like a.[key='value'].b

* fix: previous unitary tests with the new code

* test: add positive unitary tests for the new feature

* test: add negative unitary tests

* doc: updated methods docstring

* doc: updated changelog

* fix: flake8 format for unitary testing

* fix: flake8 format for dataset module

* chore: adapt code to codeclimate bot stupidity

* test: add unitary test for invalid list structure
* fix: upgrade Faker version to 25.9

* fix Firefox unittests
…ackground (#397)

* bug(QAWTO-212): fix action before the feature with background output with error

* fix(QAWTO-212): fix flake8 linter messages

* fix(QAWTO-212): move behave import to selected function

* docs(QAWTO-212): update changelog
@jruizg23 jruizg23 requested a review from rgonalo July 8, 2024 12:19
@jruizg23 jruizg23 requested a review from rgonalo July 12, 2024 10:07
rgonalo
rgonalo previously approved these changes Jul 12, 2024
@jruizg23 jruizg23 requested a review from rgonalo July 15, 2024 08:17
@jruizg23 jruizg23 merged commit 35aade4 into feat/playwright Jul 15, 2024
20 checks passed
@jruizg23 jruizg23 deleted the feat/QAWTO-188 branch July 15, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants