讓我周圍的量角器頭......我怎麼能一個angularjs頁面看起來像這樣在訪問一個按鈕元素:量角器找不到使用cssselector定位器的元素?
element(by.css('button primary')).click();
得到一個錯誤:
<button class="button primary">Save</button>
在我的測試使用此:
NoSuchElementError: No element found using locator: By.cssSelector("button primary")
我該如何解決這個問題?
'by.css('。button.primary')' – Phil 2014-10-08 00:21:20
請參閱http://www.w3.org/TR/CSS2/selector.html和/或https://developer.mozilla.org/ en-US/docs/Web/Guide/CSS/Getting_started /選擇器 – Phil 2014-10-08 00:27:18
感謝Phil excellent – Pindakaas 2014-10-08 00:35:24