Does selenium support MultiThreading

Hi,

We have the following scenario.

Start webDriver (PhantomJS in our case). Open the url and login.

Start a new Thread say Producer which will continuously check for any messages and put it in a sharedQ whenever message appears in the page.

Start another thread say Consumer which will check the sharedQ, picks up messages and process the same.

Both Producer & Consumer should run independently.

We tried writing a simple Prod-Cons program and found that it is NOT running with webdriver. Same program with normal java code gives the expected output.

And you provide any suggestion?

 

Thanks & Regards

Trinayan

Default Asked on April 24, 2017 in Selenium WebDriver.
Add Comment
  • 0 Answer(s)
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.