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)