
Код: Выделить всё
[url=/logout/]Abmelden[/url]Код: Выделить всё
[url=/logout/] Abmelden[/url]Код: Выделить всё
(//a[contains(.,'Abmelden')])[1]
Код: Выделить всё
(//a[contains(.,'Abmelden')])[2]
Код: Выделить всё
org.openqa.selenium.JavascriptException: javascript error: {"status":60,"value":"https://www.aldi-onlineshop.de/logout/ has no size and location"}Код: Выделить всё
loginTestUser();
WebElement logged_in = driver.findElement(By.xpath("//div[contains(.,' test test')]"));
//Instantiating Actions class
Actions actions = new Actions(driver);
//Hovering on main menu
actions.moveToElement(logged_in);
WebElement abmelden = driver.findElement(By.xpath("(//a[contains(.,'Abmelden')])[2]"));
actions.click(abmelden);
//build()- used to compile all the actions into a single step
actions.click().build().perform();
Я хотел бы наградить этот вопрос: но он закрыт. Куда я могу пожаловаться на то, что за закрытые вопросы невозможно дать награду?
Подробнее здесь: https://stackoverflow.com/questions/785 ... d-location
Мобильная версия