Is there any way in which I can get the process id of the launched browser? Is that possible?
I’m using Selenium WebDriver. Test cases are running in mac against Safari browsers.
Upload is not working in Safari. WebDriver can’t able to click on the upload button and also the trick of sendKeys to upload file also not working either. So we wrote an applescript for it. Now, in parallel mode, we want to know which safari needs the upload button click. In that case, the only solution is to get the process id of that browser and then send to applescript so that it picks the right one! This is what we are trying.
Any idea will be great!
--To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/3bd9ace8-7bf5-430b-91c7-d54fdfb3ed4c%40googlegroups.com.
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 post to this group, send email to seleniu...@googlegroups.com.
Out of box, selenium does not expose driver process id or Browser hwnd but it is possible. Below is the logic to get hwnd
its not possible to post full code here, the full working solution (C#) to bring browser in front is on my blog
http://www.pixytech.com/rajnish/2016/09/selenium-webdriver-get-browser-hwnd/