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 · 4 comments
Open

How to manage browser tabs #182

sdv75 opened this issue Sep 3, 2024 · 4 comments

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

@ItsWhoCares
Copy link

Did you find any way to switch to a popup window ?

@sdv75
Copy link
Author

sdv75 commented Nov 11, 2024

Popup is an iframe or div block.

@ItsWhoCares
Copy link

It is a seperate browser window, the one's you get when you click on a sign in button for Google or Microsoft account.

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