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