[b:f5irrzyk]NOTE:I CAN CLICK SAME LINK IN FIREFOX BROWSER.[/b:f5irrzyk]
Sir, i tried following solutions:
1>updated to latest chromedriver.
2>Used explicit wait
[b:f5irrzyk][b]w.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);
WebElement toclick=w.findElement(By.xpath("//*[@id='link_1_Title']"));
WebDriverWait wait = new WebDriverWait(w, 1000000000);
wait.until(ExpectedConditions.elementToBeClickable(toclick));
toclick.click();[/b:f5irrzyk][/b]
3.instead of relative xpath ,tried [b:f5irrzyk]absolute xpath[/b:f5irrzyk]....
[b:f5irrzyk]Sir, none of them worked....
Please give your inputs on this....[/b:f5irrzyk]
[b:3m53wfn4]I tried scrolling to element & den clicking it[/b:3m53wfn4]
w.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);
WebElement toclick=w.findElement(By.xpath("//*[@id='link_1_Title']"));
((JavascriptExecutor) w).executeScript("arguments[0].scrollIntoView(true);", toclick);
try {
Thread.sleep(500);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
WebDriverWait wait = new WebDriverWait(w, 1000000000);
wait.until(ExpectedConditions.elementToBeClickable(toclick));
toclick.click();
[b:3m53wfn4]Issue not resolved sir.
Please give ur inputs sir.[/b:3m53wfn4]
MORE INFO:
=================
For this link following was the status before i tried clicking it
System.out.println(toclick.isDisplayed());--------------------->[b:7o327v7x]True[/b:7o327v7x]
System.out.println(toclick.isEnabled());--------------------->[b:7o327v7x]True[/b:7o327v7x]
System.out.println(toclick.getText());--------------------------->[b:7o327v7x]SonSo[/b:7o327v7x]
Actions A=new Actions(w);
A.moveToElement(toclick).click().build().perform();
System.out.println("last statement");
[b:1pxyre9t]
This wont work tooo[/b:1pxyre9t]
Sir.......
I can click this link only via javascripexecutor......
JavascriptExecutor executor = (JavascriptExecutor)w;
executor.executeScript("arguments[0].click();", toclick);
[b:15w1swym]Sir , then is my chrome browser incompatible with chromedriver ?[/b:15w1swym]
This also wont work:
Actions A=new Actions(w);
//A.moveToElement(toclick).click().build().perform();
A.moveToElement(toclick, [b:2ssrds3s]186, 680[/b:2ssrds3s]).click().build().perform();
Pls put forth ur inputs.......