Troglodyne-Internet-Widgets / selenium-client-perl

WC3 Selenium client for Perl
6 stars 4 forks source link

Is it possible to add preferences capability? #10

Open cgf1 opened 1 year ago

cgf1 commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

Ok, thanks.

cgf1 commented 11 months ago

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

teodesian commented 11 months ago

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 commented 2 months ago

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.