Testing the contents of a temporary element with protractor

后端 未结 6 1696
清酒与你
清酒与你 2021-01-04 09:12

I\'m trying to test the login page on my site using protractor.

If you log in incorrectly, the site displays a \"toast\" message that pops up for 5 seconds, then dis

6条回答
  •  星月不相逢
    2021-01-04 09:37

    It turns out that this is known behaviour for protractor. I think it should be a bug, but at the moment the issue is closed.

    The workaround is to use $interval instead of $timeout, setting the third argument to 1 so it only gets called once.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题