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

DevTools usage #2616

Closed
jirikralik opened this issue Nov 29, 2021 · 4 comments
Closed

DevTools usage #2616

jirikralik opened this issue Nov 29, 2021 · 4 comments
Labels

Comments

@jirikralik
Copy link

Hello guys,

serenity finally supports Selenium 4 (thank you John!). I would like to use the DevTools for our project. Do I assume correctly, it is not currently possible since the webdriver is managed by serenity and we are not able to get ChromeDriver instance to call getDevTools? Thank you!

Jiri

@wakaleo
Copy link
Member

wakaleo commented Nov 29, 2021

In any PageObject or UIInteractionSteps class, you can call getDevTools(). And in Screenplay, you can do something like this:

         actor.attemptsTo(
             WithDevTools.perform(
                 devTools -> devTools.createSession()
             )
         );

@jirikralik
Copy link
Author

omg, this is even better than I expected

@izachwei
Copy link

izachwei commented Dec 3, 2021

@wakaleo @jirikralik
hi , Is there a guide for devTools send?

devTools.send(new Command<>())

Parameter description of the Command class

@wakaleo
Copy link
Member

wakaleo commented Dec 3, 2021

There is probably something in the Selenium documentation .

@wakaleo wakaleo closed this as completed Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants