How does python webdriver work?

I want to add some features to webdriver , but since I don’t know Java at all, I want to understand how this works in the first place. Since I get this, there is a firefox plugin (javascript), and there is java code that runs firefox with the extension installed, then this Java code listens on the local port, and when it receives some command, java signals this to the firefox plugin, which performs the actual work. And python code is just a bunch of shortcuts for the port interface. It is right?

Update:

Thanks for the answer, malatio. But can anyone explain why when I add alert('Hello world!'); after FirefoxDriver.prototype.deleteCookie = function(respond, cookieString) { in D:\webdriver-read-only\firefox\src\extension\components\firefoxDriver.js and then run

from webdriver_firefox.webdriver import WebDriver

wd = WebDriver()
wd.delete_all_cookies()

I still do not see a warning Hello world!(and receive)

+3
1

, . Java JavaScript, . , http, , , - . Python API - - , http -. Webdriver , Selenium ( Webdriver Selenium "Selenium 2"). Selenium: how-selenium-rc-works

alt text
(: openqa.org)

+4

Source: https://habr.com/ru/post/1724191/


All Articles