protractor

    0熱度

    1回答

    我正在做天真的e2e測試。該網站的前兩頁是角少,所以我用driver.findelement他們得到的,與忽略同步設置爲true: it('should go to login page on pressing button',function(){ driver.get('http://localhost:54080/'); driver.findElement(by.id(

    1熱度

    1回答

    在我最近的一篇文章中,我遇到了一個有關hideen元素的問題(請參閱Here)。從那時起,我已經從鉻驅動器轉向phantomjs進行無頭測試。 我的問題是這樣的。 由於移動選擇隱藏元素導致誤差下面, UnknownError: Error Message => ''undefined' is not a function (evaluating 'arguments[0].click()')' 在

    0熱度

    1回答

    節點的父硒選擇比方說,我有100個元素這樣我的網頁上 <div class="fc-event-inner"> <span class="fc-event-time">4p</span> <span class="fc-event-title">Singles</span> </div> 我怎樣才能通過它的兩個孩子硒/ WebDriverJS /量角器的內容選擇div?

    1熱度

    2回答

    我有一個使用.NET呈現幷包含c#.net代碼的頁面。我正在用protractorjs使用phantomjs GhostDriver來測試它。不過,當頁面加載時,我似乎遇到問題。 如果我運行這個測試 it('should redirect to login', function() { targetUrl = 'http://localhost:52254/'; ptor =

    4熱度

    3回答

    我似乎無法選擇元素,然後單擊它們與量角器的元素的探險家。 例如 it('should do ', function(){ browser.get('localhost:3000/myapp'); browser.getCurrentUrl().then(val){ console.log(val); } var profileIcon = ele

    32熱度

    4回答

    例如,我從table的行內隨機選取一個button元素。 在找到button之後,我想要檢索包含選定按鈕的table的行。 繼承人是我的代碼片段: browser.findElements(by.css('[ng-click*=submit]')).then(function (results) { var randomNum = Math.floor(Math.random() * r

    0熱度

    3回答

    我在以前的測試中使用過瀏覽器和ptor,但它們有不同的問題,但總體上看起來很麻煩,儘管我更喜歡瀏覽器。 所以我的問題是,爲了測試一個大型的角度應用程序,是更喜歡使用protractor.getInstance還是隻使用常規瀏覽器?

    6熱度

    4回答

    我的測試失敗: it('should allow login', function() { browser.get('index.html'); $('#username').sendKeys('administrator'); $('#password').sendKeys('password'); $('#login').click();

    -1熱度

    1回答

    1)如何測試錨點標記是否有量角器的href。像我必須測試頁眉和頁腳中的所有鏈接是否使用量角器testcase.2)和div包含輸入按鈕的TestCase

    15熱度

    2回答

    如果我這樣做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