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

Add Safari runner for selenium #27

Merged
merged 8 commits into from
Sep 2, 2022
Merged

Conversation

ryanking13
Copy link
Member

@ryanking13 ryanking13 commented Aug 23, 2022

Adds safari runner for selenium, mostly adopted from @rth's PR in Pyodide pyodide/pyodide#2578

I also added selenium_standalone_refresh fixture which I experimented in pyodide/pyodide#2957.
Since selenium allows only one Safari browser instance active at any given time, the original selenium_standalone is not very suitable for Safari test.

I am not sure whether we should fully replace selenium_standalone with selenium_standalone_refresh, as it is not tested very much yet. So I made a separate fixture and add an option (STANDALONE_REFRESH env variable) which dynamically overrides selenium_standalone with selenium_standalone_refresh. I am open to better ideas.

Copy link
Member

@rth rth left a comment

Choose a reason for hiding this comment

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

Thanks @ryanking13 !

@rth
Copy link
Member

rth commented Sep 2, 2022

Actually, I think we can tag and release this. I'm going to bump the version to 0.22 as I think it's weird to add features in a patch release, and we are not going to be able to keep this version in sync with pyodide distro release. So we might as well deviate already now.

@rth rth changed the title Add safari runner for selenium Add Safari runner for selenium Sep 2, 2022
@rth rth merged commit 428b18d into pyodide:main Sep 2, 2022
@ryanking13
Copy link
Member Author

Actually, I think we can tag and release this. I'm going to bump the version to 0.22 as I think it's weird to add features in a patch release, and we are not going to be able to keep this version in sync with pyodide distro release. So we might as well deviate already now.

Yes, sounds good to me

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.

2 participants