How to get chrome tab id in selenium?

194 views
Skip to first unread message

keanyee tan

unread,
Aug 5, 2019, 10:53:14 PM8/5/19
to Selenium Users
Hi, 

I know that you can get the browser process id in selenium (python). But is it possible to get the tab id as well?

I have been researching about this for hours. Any help is appreciated.

Thanks, 
Kean

Aniket Mane

unread,
Aug 6, 2019, 12:46:25 AM8/6/19
to seleniu...@googlegroups.com
Selenium consider tab as window.

So if you use getwindowhandle(Idk exact name) method, you ll get the all windows id.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/eaa92634-421e-41ed-aeb5-18afd396571e%40googlegroups.com.

keanyee tan

unread,
Aug 6, 2019, 6:52:31 AM8/6/19
to Selenium Users
Thank you , Aniket !


On Tuesday, August 6, 2019 at 2:46:25 PM UTC+10, Aniket wrote:
Selenium consider tab as window.

So if you use getwindowhandle(Idk exact name) method, you ll get the all windows id.
On Tue, Aug 6, 2019, 08:22 keanyee tan <kean...@gmail.com> wrote:
Hi, 

I know that you can get the browser process id in selenium (python). But is it possible to get the tab id as well?

I have been researching about this for hours. Any help is appreciated.

Thanks, 
Kean

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seleniu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages