In pythons self.selenium = selenium("localhost", 4444, "*firefox", "http://google.com/")
In pythons self.selenium = selenium("localhost", 4444, "*firefox", "http://g开发者_高级运维oogle.com/") how do i run my python scripts from my desktop but my selenium rc is installed in main server.can i give my server location in place of localhost...please provide me the soultion ASAP. Thx
I am able to run my scripts in localhost selelnium rc.You need to read more about selenium-grid from here. To use the grid, you should
- start the hub and RC in server and client machines.
- Register your RC to the Hub.
- Then change the "localhost" in
self.selenium = selenium("localhost", 4444, "*firefox", "http://google.com/")
All the commands you pass to selenium grid will be distributed among the RCs that are registered to the Hub.
Always remember, selenium grid just executes multiple selenium commands. You should find a way by which multiple commands/tests can be triggered simultaneously
yes you are correct.Selenium RC is a client server technology.so we can place client and server in different machines.
this is how we usually run test scripts against number of browsers(browser testing) in different machines.
cheers
精彩评论