mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
fix(selenium): Use ms:edgeOptions with Edge. (#12933)
This commit is contained in:
parent
2a7370bad2
commit
7db40071a8
@ -159,7 +159,10 @@ export class Chromium extends BrowserType {
|
||||
const args = this._innerDefaultArgs(options);
|
||||
args.push('--remote-debugging-port=0');
|
||||
const isEdge = options.channel && options.channel.startsWith('msedge');
|
||||
let desiredCapabilities = { 'browserName': isEdge ? 'MicrosoftEdge' : 'chrome', 'goog:chromeOptions': { args } };
|
||||
let desiredCapabilities = {
|
||||
'browserName': isEdge ? 'MicrosoftEdge' : 'chrome',
|
||||
[isEdge ? 'ms:edgeOptions' : 'goog:chromeOptions']: { args }
|
||||
};
|
||||
try {
|
||||
if (process.env.SELENIUM_REMOTE_CAPABILITIES) {
|
||||
const parsed = JSON.parse(process.env.SELENIUM_REMOTE_CAPABILITIES);
|
||||
|
Loading…
Reference in New Issue
Block a user