弹出POP而不单击链接

时间:2019-01-15 16:51:12

标签: java selenium

enter image description here我正在自动化this site:

当我单击一个按钮时,将显示一个弹出窗口。屏幕上有一个链接可显示弹出窗口,但是我的代码中没有任何东西可以单击该代码被注释掉的链接。

HIVE_METASTORE_ERROR: : expected at position x in 'some string' but ' ' found instead.

1 个答案:

答案 0 :(得分:0)

请尝试使用xpath,我认为这可能对您有用,因为我在资源中看到过,xpath看起来比id更好。

driver.findElement(By.xpath("//a[contains(text(),'assumptions and terms and conditions before procee')]")).click();
相关问题