[Class]An application port of w3c's webdriver API client.
Posted: 30 Oct 2019, 16:45
Hi,
This is my newest release in GitHub of an application port of w3c's webdriver API client in Autohotkey language.
Support all WebDrive:
https://github.com/devnullsp/ahkWebDrive
This is NOT a Selenium port.
This is intended for webscrapping purpose.
I hope this is helpfull,
Devnullsp.
changelog:
v1.0 First realease.
v1.1 switch to teadrinker'json.
Sample:
This is my newest release in GitHub of an application port of w3c's webdriver API client in Autohotkey language.
Support all WebDrive:
- Google Chorme: https://chromedriver.chromium.org/
- Mozilla: https://github.com/mozilla/geckodriver/releases
- IExplorer: https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
- Edge: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/#downloads
https://github.com/devnullsp/ahkWebDrive
This is NOT a Selenium port.
This is intended for webscrapping purpose.
I hope this is helpfull,
Devnullsp.
changelog:
v1.0 First realease.
v1.1 switch to teadrinker'json.
Sample:
Code: Select all
; get Session (WebDriver is runing @ localhost:9515)
wd := new WDSession("http://localhost:9515")
; navigate to new site
wd.url("https://autohotkey.com")
; click over documentation
wd.element(WDSession.XPath,"//*[@id=""menu-0""]/div/div/div/div[3]/nav/div/ul/li[2]/a").click()
; or use
we :=wd.element(WDSession.XPath,"//*[@id=""menu-0""]/div/div/div/div[3]/nav/div/ul/li[2]/a")
we.click()
; using javascript
we := wd.element(WDSession.XPath,"//*[@id=""menu-0""]/div/div/div/div[3]/nav/div/ul/li[2]/a")
wd.execute("arguments[0].click()",[we]))