Skip to content

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

Open

Description

@vishuhanda

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

Activity

  1. nathan-bstack commented on Jul 8, 2024

    @nathan-bstack

    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.

  2. vishuhanda commented on Jul 8, 2024

    @vishuhanda
    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

  3. vishuhanda commented on Jul 8, 2024

    @vishuhanda
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions