Hi
I want to set up a process where by I automate different test procs with several browsers in parallel (using different threads).
My problem is that:
testScript1 needs to run on browser1 at URL1
and testScript2 needs to run on browser2 at the same URL1.
and testScript3 needs to run on browser3 at the same URL1.
These (different) tests will be reading and setting "equivalent" controls on different browser documents, and I want to keep them separate.
Now I understand that the controls on the different browsers will have the same RanoreXPath.
Therefore I'm concerned the process will not be reliable. I need to ensure that TestScript1 only accesses browser1 and so on;
In my application, I tend to build up the XPath strings manually and use the Find(), FindSingle() functions for identifying elements.
For example:
I would start the process by opening the web document:
System.Diagnostics.Process.Start("iexplore.exe", "www.myurl.com");
WebDocument webDocument = "/dom[@caption='My Caption']";
Then I would start another instance of the browser, using the same commands. How do I separately identify them?