Unable to locate element in Selenium-java by xpathe

时间:2017-08-05 11:33:20

标签: java selenium xpath

I can't select the button to click.

I tried

    driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
driver.findElement(By.xpath("//div[text()='Follow']")).click(); 

Here is my html:

<tr>
<td>click</td>
<td>//div[@id='root']/div/div/div/div/div[2]/div[2]/div/div[6]/figure/button</td>
<td></td>

Here is the button Image: enter image description here

Please help me.

0 个答案:

没有答案