I am working with Selenium for a while and doing some testing and it's been great. Now I have created a test case which I want to run on IE, Firefox, and Google Chrome at the same time. I have run it separately and they run just fine, but I was wondering if there is a way to change my script and run them all together.
I already set up the grid with a hub and three remote controls (Firefox port=5556, IE port=5557 and Chrome port=5558). Now when it comes to the script I set up the three drivers:
def setUp(self):
# Setting up the driver for Firefox
self.driverFF = webdriver.Firefox()
...
# Setting up the driver for IE
self.driverIE = webdriver.Ie()
...
# Setting up the driver for IE
self.driverCh = webdriver.Chrome()
...
Then I created three different methods and run them with each driver. I have not tested it yet, but I was wondering: Is there a efficient way to do this?