Forum Discussion
Thank you so much for your quick response. I am not 100% sure yet where to put that function. I think I need to learn TestComplete itself a bit more.
I did try making a keyword test like this:
Browser Loop: Chrome, Edge
Run Code Snippet: Value = UnitTesting.SeleniumTests.Execute(Browsers.CurrentBrowser)
What this does is launches the browser (Chrome is the first), then it tries to run my test. My web drivers in the test not able to pick up that browser from the loop. I will keep taking a look at this.
Hi,
Selenium driver can use only the browser that it (driver) started. Selenium driver cannot attach to the already running browser. This is one of Selenium's essentials and I am really doubting this ever will be changed.
So, the only option you have, is to store browser's name in some configuration file written from TestComplete, read the name from this file in your Selenium test and proceed accordingly.
Related Content
Recent Discussions
- 3 hours agoSubhraDas