Дано:
Code: Select all
var webdriver = require("selenium-webdriver");
var chrome = require("selenium-webdriver/chrome");
var driver = new webdriver.Builder().forBrowser("chrome").build()
Code: Select all
driver.get("http://google.com").then(function()
{
$('#gpqfbb').click()
})
Code: Select all
driver.get("http://google.com").then(function()
{
driver.findElement(webdriver.By.id("signup-link")).click()
})