I am trying to click on 'Add'
button but I am getting the following error message:
Exception in thread "main" org.openqa.selenium.WebDriverException: unknown
error: Element <img src="theme/catalogSiemens/images/btn/btnBackCatalog.png"
alt="Zurück" title="Zurück"> is not clickable at point (53, 57). Other
element would receive the click: <div id="updateIndicator"
class="waitVisible"></div>
(Session info: chrome=58.0.3029.110)
(Driver info: chromedriver=2.29.461591
(62ebf098771772160f391d75e589dc567915b233),platform=Windows NT 10.0.10586
x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 581 milliseconds
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'P3B-BQHT7R1', ip: '10.222.132.78', os.name: 'Windows
10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_111'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Capabilities [{applicationCacheEnabled=false, rotatable=false,
mobileEmulationEnabled=false, networkConnectionEnabled=false, chrome=
{chromedriverVersion=2.29.461591 (62ebf098771772160f391d75e589dc567915b233)
My code is:
driver.findElement(By.linkText("CMT Desigo CC")).click();
driver.findElement(By.linkText("Basis")).click();
driver.findElement(By.xpath("//img[@alt='In den Einkaufswagen
legen']")).click();
System.out.println("Item 1 added");
driver.findElement(By.xpath("//img[@alt='Zurück']")).click();
HTML is:
<a onclick=" if (document.referrer &&
document.referrer.indexOf('cameleonUI') > -1){if
(Prototype.BrowserFeatures.isAndroid) {history.back();} else {if
(document.referrer.startsWith(document.baseURI))
{location.href=document.referrer; } else {/* do nothing, too risky
*/}}}else{goBack('close.do?S_moduleContextId=cat');}; return false;
"
id="tile282_0"
actionName="BACK"
href="#"
target="_blank"
class="" > <img
src="theme/catalogSiemens/images/btn/btnBackCatalog.png" alt="Zurück"
title="Zurück" /> </a>
Any suggestions will be appreciated.
Also let me know if more information is needed.
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…