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 manage browser tabs #182

Open
sdv75 opened this issue Sep 3, 2024 · 1 comment
Open

How to manage browser tabs #182

sdv75 opened this issue Sep 3, 2024 · 1 comment

Comments

@sdv75
Copy link

sdv75 commented Sep 3, 2024

Example from Selenium
get num tabs - driver.window_handles
switch to tab - driver.switch_to.window(tab hash)

Please write how to do it in botasaurus?

@sdv75
Copy link
Author

sdv75 commented Sep 5, 2024

I found it. See cdp target.
driver.run_cdp_command(cdp.target.get_targets()) return quantity of tabs

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