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

Is it possible to add preferences capability? #10

Open
cgf1 opened this issue Apr 26, 2023 · 5 comments
Open

Is it possible to add preferences capability? #10

cgf1 opened this issue Apr 26, 2023 · 5 comments

Comments

@cgf1
Copy link

cgf1 commented Apr 26, 2023

I need to be able to turn off firefox credit card autofill but I don't see a way to set up preferences. Is there one?

@teodesian
Copy link
Contributor

Not sure, there isn't exactly guidance in the spec for doing that.

I am currently in the middle of making this the backend for a selenium4 version of Selenium::Remote::Driver, so I suppose I'll have to find out soon.

@cgf1
Copy link
Author

cgf1 commented Apr 27, 2023

Ok, thanks.

@cgf1
Copy link
Author

cgf1 commented Dec 13, 2023

Just wondering if you'd ever found out about this since it just came up again for me.

@teodesian
Copy link
Contributor

The new selenium4 connection strings appear as though they are incompatible with the old desiredCapabilities regime.

You now have to pass the 'alwaysMatch' stuff to make things work.
Which is a problem, as desiredCapabilities was the default mode of operation for SRD.

Anyhow, see the JSON example here:
https://developer.mozilla.org/en-US/docs/Web/WebDriver/Capabilities/firefoxOptions#example

For how such a thing "ought" to be set up once the S4 code is working.
RE the status of that -- I'm still burning through it. I've got about 80% of commands working, but it's been a slog due to seleniumHQs jar having the very annoying error mode of telling you nothing and just hanging forever if anything is wrong.

I wish I could say I'm going to be able to work on it today, but as always it's on beg-borrow-steal time.

@teodesian
Copy link
Contributor

Update: I've got all the commands working. I wish I had time to have done this earlier, but here we are.

I have yet to make a shim to get the firefox prefs in.

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

No branches or pull requests

2 participants