protractor

How to test ag-grid with protractor?

不想你离开。 提交于 2021-01-28 08:50:19
问题 In my app, I use ag-grid to display the data. I am unsure on how I can select a field within the grid so that I can test if it is there or not. Many of the examples I have found have not been much help. If anybody could guide me in the right direction, that would be great!:) Here is my HTML code: <div style="height: 90%; text-align: left"> <ag-grid-angular enableColResize groupHeaders style="width: 100%; height: 100%;" [gridOptions]="gridOptions" (gridReady)="onGridReady($event)" class="ag

can not access global 'allure' object using mocha-allure

这一生的挚爱 提交于 2021-01-28 08:41:25
问题 According to mocha-allure docs, if you want to use allure outside of before/beforeEach you should import the reporter directly. Or once added mocha-allure-reporter will create global allure object with the following API: https://github.com/allure-framework/allure-mocha https://github.com/allure-examples/mocha-allure-example/blob/master/test/simple.spec.js However I followed the example in the docs, but i get Cannot find name 'allure'. , when using it in either the before or afterEach. test

How to introduce delay between tests in protractor

萝らか妹 提交于 2021-01-28 08:11:41
问题 I am exploring protractor tool with cucumber and test is executing super fast.. in order to know if really elements are getting clicked or not, I am using sleep() method but failing. I am also using another method wait() with expected conditions which is also failing.. In fact, I understood click() method on the link element itself is failing.. That is, unable to click on element which I desired, however when I print on console element is printing all its attributes and methods. please find

import {browser, element, by, By, $, $$, ExpectedConditions} from 'protractor' error

百般思念 提交于 2021-01-28 05:33:39
问题 I have installed Protractor, typescript, jasmine with type globally and also locally. Getting following error while running the test via npm install, please guide if anything wrong with the setup. import {browser, element, by, By, $, $$, ExpectedConditions} from 'protractor'; ^^^^^^ SyntaxError: Unexpected token import at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:542:28) at Object.Module._extensions..js (module.js:579:10) at Module.load

Protractor error “WebDriverError: Invalid timeout type specified: ms”

谁都会走 提交于 2021-01-27 21:15:10
问题 With no changes my protractor tests started giving this error: [14:07:05] E/runner - Unable to start a WebDriver session. [14:07:05] E/launcher - Error: WebDriverError: Invalid timeout type specified: ms Appreciate any help with this 回答1: I had the same issue with Internet Explorer. Downgrading protractor from 5.1.2 to 5.0.0 worked for me. (5.1.0, 5.1.1 and 5.1.2 seem to have the bug) See this bug here: https://github.com/angular/protractor/issues/4445 回答2: Find out the selenium standalone

Headless chrome: chrome not reachable

懵懂的女人 提交于 2021-01-27 21:10:24
问题 I am using Chrome headless to run the protractor test. It runs for a while but after that i get the following error. [15:36:30] E/launcher - chrome not reachable (Session info: headless chrome=59.0.3071.115) (Driver info: chromedriver=2.30.477690 (c53f4ad87510ee97b5c3425a14c0e79780cdf262),platform=Mac OS X 10.11.6 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 5 milliseconds Build info: version: '3.4.0', revision: 'unknown', time:

“Failed: Error while waiting for Protractor to sync with the page” while executing Protractor tests

喜欢而已 提交于 2021-01-27 17:00:43
问题 I try to execute some Protractor tests on a web application that consists of both Angular and non-angular components. My code looks like so: describe("Test Name", function() { it("Test case", function() { // first execute steps on a non-Angular component browser.waitForAngularEnabled(false); // some test steps // then execute tests on an Angular component, which opens in a new browser tab browser.waitForAngularEnabled(true); // some more test steps }); }); The problem is that after the above

“Failed: Error while waiting for Protractor to sync with the page” while executing Protractor tests

人走茶凉 提交于 2021-01-27 16:51:16
问题 I try to execute some Protractor tests on a web application that consists of both Angular and non-angular components. My code looks like so: describe("Test Name", function() { it("Test case", function() { // first execute steps on a non-Angular component browser.waitForAngularEnabled(false); // some test steps // then execute tests on an Angular component, which opens in a new browser tab browser.waitForAngularEnabled(true); // some more test steps }); }); The problem is that after the above

Element is not clickable at point in headless mode. But when we remove headless from protractor.conf.js it is working fine.

让人想犯罪 __ 提交于 2021-01-27 12:13:00
问题 element(by.className('cuppa-dropdown')).element(by.className('dropdown-list')).element(by.className('list-area')).element(by.tagName('li')).click(); actually this element is in pop up. ANd it is woring fine in headless mode. But as we need to automate the test cases by build in vsts we need to execute test in headless mode Failed: unknown error: Element is not clickable at point (863, 343) (Session info: headless chrome=63.0.3239.84) (Driver info: chromedriver=2.34.522940

How to stop protractor from downloading latest chromedriver?

杀马特。学长 韩版系。学妹 提交于 2021-01-27 05:54:28
问题 I am running E2E tests using Protractor on Bamboo. I got this error unknown error: Chrome failed to start: exited abnormally (unknown error: DevToolsActivePort file doesn't exist) Then I found that I had to downgrade to 2.37 version of Chromedriver. I found that here "https://github.com/angular/protractor/issues/4850" . I found a way to download a specific version of chromedriver here https://medium.com/@cnishina/webdriver-manager-a-node-module-c33a820f5eb . So I am using webdriver-manager