Javascript 我可以用selenium单击模式上的按钮吗?
我正在尝试将chimpjs与cucumber和selenium结合使用来自动登录,但我们目前通过一个模式进行登录。目前,所有点击该模式上登录按钮的尝试都会导致相同的错误:Javascript 我可以用selenium单击模式上的按钮吗?,javascript,selenium,cucumberjs,chimp.js,Javascript,Selenium,Cucumberjs,Chimp.js,我正在尝试将chimpjs与cucumber和selenium结合使用来自动登录,但我们目前通过一个模式进行登录。目前,所有点击该模式上登录按钮的尝试都会导致相同的错误: Error: unknown error: Element is not clickable at point (764, 42). Other element would receive the click: <div class="login-overlay " style="display: block; opa
Error: unknown error: Element is not clickable at point (764, 42). Other element would receive the click: <div class="login-overlay " style="display: block; opacity: 0.969096;">...</div>
听起来好像在控件顶部有一个“登录覆盖”元素
作为一种解决方法,请使其不可见:
没有测试
client.execute("arguments[0].style.display = 'none';", client.element('.login-btn'));