开发者

In pythons self.selenium = selenium("localhost", 4444, "*firefox", "http://google.com/")

开发者 https://www.devze.com 2023-03-16 12:26 出处:网络
In pythons self.selenium = selenium(\"localhost\", 4444, \"*firefox\", \"http://g开发者_高级运维oogle.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

  1. start the hub and RC in server and client machines.
  2. Register your RC to the Hub.
  3. 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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号