Jump to content

Webdriver, attach browser


Recommended Posts

I am trying to operate an existing browser window with webdriver / Firefox.

I started from the sample script "GDPR fines.au3" and reduced it to the minimum.

When I set the flag $bUseAttach to 0, all is ok, it opens a new Firefox, goes to the GDPR webpage, then goes to Google.

When I set the flag $bUseAttach to 1, even if I have a Firefox open with the GDPR website, it will open a new one, then go to Google in the new website. I would like to attach the existing browser, and load Google there.

I also tried to leave a Firefox, opened by Webdriver, but the attach will not even work there. Of course, ideally, I would like to attach a "normal" existing Firefox window.

If switching browser might help, I am ready to do it.

What am I doing wrong?

 

mytest.au3

Edited by MachoCamicho
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...