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

Open browser options bug #1877 #1879

Merged

Conversation

emanlove
Copy link
Member

Allow for semicolon at end of selenium options. Also handles issue of empty options if for example an extra semicolon is put into the options. In such cases we ignore the empty option and publish a warning.

Fixes #1877

Within the selenium options argument of the `Open Browser` keword, if there were
trailing semicolons then the keyword would fail. With this change we allow trailing
semicolons. In addition the library warns about emtpy options.

Fixes robotframework#1877
Copy link
Contributor

@aaltat aaltat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

@emanlove
Copy link
Member Author

Kiitos Tatu!

@aaltat
Copy link
Contributor

aaltat commented Jan 20, 2024

Although failures in utest needs looking.

@emanlove
Copy link
Member Author

.. was just checking that out. Didn't fail previously under Windows. Checking Linux (via WSL)

The new selenium options parser has a slightly different behaviour when
it comes to multiple arguments with generious spacing within its option
string. In stead of leaving preceeding and trailing spaces it removes those.
This change is approved files corrects for this change.
I let this leak in. It shouldn't be there and it looks like it is causing trouble in
GitHub Actions
@emanlove emanlove merged commit 483e365 into robotframework:master Jan 20, 2024
18 checks passed
@emanlove emanlove deleted the open-browser-options-bug-#1877 branch September 28, 2024 00:06
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.

Open Browser 'Options' object has no attribute ''
2 participants