Selenium Htmlunit org.openqa.selenium.ElementNotVisibleException: You may only interact with visible elements

[亡魂溺海] 提交于 2019-12-13 07:56:17

问题


enter image description here

Need support on issue selecting radio button, tried with javascript but not working.

WebElement Select4 = driver.findElement(By.name("IsGoldMember"));
Select4.click();

回答1:


Try driver.findElement(By.xpath("//input[@id='IsGoldMemberTrue']"));. It maybe the case that the name IsGoldMember is not unique on the web page.



来源:https://stackoverflow.com/questions/43792740/selenium-htmlunit-org-openqa-selenium-elementnotvisibleexception-you-may-only-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!