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
[selenium-webdriver] Fix missing/incorrect webdriver.Builder methods #37854
[selenium-webdriver] Fix missing/incorrect webdriver.Builder methods #37854
Conversation
@dbjorge Thank you for submitting this PR! 🔔 @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui @beta-vulgaris - please review this PR in the next few days. Be sure to explicitly select If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
👋 Hi there! I’ve run some quick performance metrics against master and your PR. This is still an experiment, so don’t panic if I say something crazy! I’m still learning how to interpret these metrics. Let’s review the numbers, shall we? Comparison details 📊
It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place. If you have any questions or comments about me, you can ping |
A definition owner has approved this PR ⭐️. A maintainer will merge this PR shortly. If it shouldn't be merged yet, please leave a comment saying so and we'll wait. Thank you for your contribution to DefinitelyTyped! |
I am on vacation and won't be able to review this |
There was a problem hiding this 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!
Updated numbers for you here from 269a7d0: Comparison details 📊
It looks like nothing changed too much. I’m pretty lenient since I’m still an experiment, so take a look anyways and make sure nothing looks out of place. |
I just published |
I went through all the
Builder
methods on the implementation and corrected any differences I saw.Some of these changes are breaking, but would only break cases that would already be broken at runtime.
Summary of changes:
getChromeOptions
,setChromeService
,setEdgeService
,getFirefoxOptions
,setFirefoxService
,setIeService
,getSafariOptions
,getHttpAgent
getEdgeOptions
andsetSafariService
methods are missing intentionally, since they are missing in the implementationie.ServiceBuilder
andie.Level
typesBuilder.getWebDriverProxy
to allow for it to returnnull
, per the implementation and docsBuilder
andCapabilities
'setAlertBehavior
parameter optional per the implementation.ie.Options.setLogLevel
signature to match the implementation, which uses an IE-specific log level and not the general logging.Level type.Builder.setSafari
method withBuilder.setSafariOptions
to match the implementationie.Driver.createSession
to match the implementationPlease fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.