Skip to content
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

How to add multiple capabilities in the caps section and how we can pass these context and page to hooks before all #1

Open
Swapnil-Titar opened this issue Apr 24, 2024 · 0 comments

Comments

@Swapnil-Titar
Copy link

I using the similar way link browser stack with cucumber js, but after before scenario section, I wish to transfer control from world.ts to hook.ts and from that I am starting the actual test scenarios,
could you help me to use the context and page for hooks ?

and how to add multiple capabilities like
const caps = {
browser: 'chrome',
os: 'Windows',
os_version: '11',
}
const caps1 = ? is it ?

how to pass that to following section ??? or do we use array of caps ?

// Create page and browser globals to be used in the scenarios
global.vBrowser = await chromium.connect({
wsEndpoint:
wss://cdp.browserstack.com/playwright?caps= +
${encodeURIComponent(JSON.stringify(caps))},
});

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

1 participant