Thanks for this video! Could you please clarify one thing, related to Firefox browser option configuration? Tu launch browser window in full size, For Chrome I'm using: 'goog:chromeOptions': {args: ['start-maximized']} For Firefox I'm trying to use: 'moz:firefoxOptions': {args: ['start-maximized']} but it doesn't work Is there any other argument we can use to run Firefox in full size mode?
@TestAutomationHub
Жыл бұрын
this is seems to be correct for me. did you try await browser.maximizeWindow() directly inside the code ?
@leksnomo
Жыл бұрын
@@TestAutomationHub Thanks for response! Yes, it works. The reason I want to manage browser window size inside the wdio.conf.ts file is that in this case our browser is starting in a full screen mode. In case we are using "await browser.maximizeWindow()" directly inside the code, the behavior is a bit different - browser is starting in a standard window size mode, then webdriwerio execute the "await browser.maximizeWindow()" command, and only then it is showing in a full screen mode. So, when I'm using 'goog:chromeOptions': {args: ['start-maximized']} - it works with Chrome, but 'moz:firefoxOptions': {args: ['start-maximized']} doesn't work with Firefox Another args, like "-headless" works fine with Firefox, only this 'start-maximized' doesn't want to work, for some reason. Testa are executes in a standard browser window((
Пікірлер: 6