开发者

How does Webdriver / Selenium "talk" to your local web browser?

For 开发者_Go百科example with FirefoxDriver, how is it sending out clicks and commands to the firefox instance?


It does this by having a webserver within the Webdriver addon for firefox. The language bindings then do a REST-ish type call to it to get something done, like clicks, typing etc.

You can see the REST-ish interface Here. We call it the Json Wire protocol. We also have more native events via the Advanced User Interactions API. This does more native clicks and typing, at the OS level.

Each language binding takes care of that for you so you dont need to worry about it.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜