Im新增量角器e2e测试。 用量角器写茉莉花测试用例。 我在html文件中有两个按钮。我想选择特定的按钮(在begin.html文件中的按钮)量角器:无法点击按钮
element(by.id('gotest'))。click();没有工作 by.linkUiSref('about-you');没有工作
上的按钮执行某些事件应该导航到下一个页面(约-你)
请帮我
Text.html
<div class="button">
<a ui-sref="begin">
<button class="green">Text</button>
</a>
</div>
<ng-include src="'../begin.html'" class="hidden"></ng-include>
begin.html
<div class="button">
<button class="green" id="gotest" ui-sref="about-you">Start</button>
</div>
我假设你在begin.html当你试图点击右键? (即不确定Text.html要做什么)。另外,你的意思是“没有工作”?没有任何事情发生或错误? – hankduan
是的,您对begin.html(点击事件发生在这里)是正确的。 – mrr
是的,您在begin.html(点击事件发生在这里)时是正确的。当我们在移动设备上启动应用程序时,首先显示text.html,然后显示begin.html。但是我们在桌面上访问相同的应用程序begin.html将包含在text.html中。我得到以下异常“消息: 错误:超时等待量角器11秒后与页面同步 aq.md ......”我也试过在配置文件中使用allscriptsTimeouts,但它没有奏效。 – mrr