Skip to content

Not able to run tests in full size on browserstack using playwright #28

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

Open
vishuhanda opened this issue Jul 8, 2024 · 3 comments
Open

Comments

@vishuhanda
Copy link

I am trying to run tests in full size in browserstack using typescript Playwright but it is not getting launched .

have provided viewport as null while creating context and also provided args as start-maximized but still no success .

can anyone confirm of add some code in this boilerplate to run test cases on full screen in Browserstack

Thanks

@nathan-bstack
Copy link

Hello ,
Could you try updating the browsermanager.ts file as below for maximize option

options: LaunchOptions = {
headless: false,
channel:'chrome',
args:['--start-maximized']
}

If you still face any issue after the implementation of the above code please create a ticket via https://www.browserstack.com/contact with session details.

@vishuhanda
Copy link
Author

Hello , Could you try updating the browsermanager.ts file as below for maximize option

options: LaunchOptions = { headless: false, channel:'chrome', args:['--start-maximized'] }

If you still face any issue after the implementation of the above code please create a ticket via https://www.browserstack.com/contact with session details.

Actually we cant provide launchoptions as chromium is getting connected using wsEndpoint

vBrowser = await playwright.chromium.connect({ wsEndpoint: wss://cdp.browserstack.com/playwright?caps=+${encodeURIComponent(JSON.stringify(caps))}, }); vContext = await vBrowser.newContext({viewport:null}); } const vPage = await vContext.newPage();

However I have provided view port as null already but it didnt worked

please help

@vishuhanda
Copy link
Author

Hello , Could you try updating the browsermanager.ts file as below for maximize option

options: LaunchOptions = { headless: false, channel:'chrome', args:['--start-maximized'] }

If you still face any issue after the implementation of the above code please create a ticket via https://www.browserstack.com/contact with session details.

Do you have minimum repro script on github which does this...and launches in full screen in browserstack

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