我正在做天真的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