我正在做天真的e2e测试。该网站的前两页是角少,所以我用driver.findelement他们得到的,与忽略同步设置为true: it('should go to login page on pressing button',function(){
driver.get('http://localhost:54080/');
driver.findElement(by.id(
在我最近的一篇文章中,我遇到了一个有关hideen元素的问题(请参阅Here)。从那时起,我已经从铬驱动器转向phantomjs进行无头测试。 我的问题是这样的。 由于移动选择隐藏元素导致误差下面, UnknownError: Error Message => ''undefined' is not a function (evaluating 'arguments[0].click()')' 在
我似乎无法选择元素,然后单击它们与量角器的元素的探险家。 例如 it('should do ', function(){
browser.get('localhost:3000/myapp');
browser.getCurrentUrl().then(val){
console.log(val);
}
var profileIcon = ele
如果我这样做expect(img).not.toBe(null)那么我得到一个错误: Error: expect called with WebElement argment, expected a Promise. Did you mean to use .getText()?。我不想让文字在img中,我只想知道标签是否存在于页面上。 describe('company homepage', f