Test Env量角器:元素在点(x,x)不可点击,其他元素将获得点击]] << [

问题描述 投票:0回答:1
嗨,我在e2e脚本中与表进行交互时遇到一些问题。element(by.css('#topic_0')).click();当我处于开发环境中时,可以很好地与之交互,但是当我切换到测试环境时与之交互时,会出现此错误。Failed: element click intercepted element id="topic_0" is not clickable at point (x,x). other element would receive the click id="topics_table"这就是我登录测试环境的方式

browser.waitForAngularEnabled(false); browser.get(browser.baseUrl); browser.sleep(10000); browser.findElement(by.id('userID')).sendKeys(browser.params.login.user); browser.findElement(by.id('password')).sendKeys(browser.params.login.password); browser.findElement(by.name('submitButton')).click(); browser.waitForAngularEnabled(true);

嗨,我在e2e脚本中与表进行交互时遇到一些问题。 element(by.css('#topic_0'))。click();在开发环境中时,我可以与之交互,但是当我...
angular protractor e2e-testing test-environments
1个回答
0
投票
通常在量角器无法找到目标元素时发生这种情况(在您的情况下,您要针对具有#topic_0 css的元素;根据您的上述代码element(by.css('#topic_0')),则发生这种情况...
© www.soinside.com 2019 - 2024. All rights reserved.