Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 19:00
    tfaron commented #5133
  • Jan 31 2019 07:28
    cnishina closed #5135
  • Jan 31 2019 07:28
    cnishina commented #5135
  • Jan 30 2019 16:23
    ThabisoGithub closed #5136
  • Jan 30 2019 16:23
    ThabisoGithub edited #5136
  • Jan 30 2019 16:23
    ThabisoGithub edited #5136
  • Jan 30 2019 16:21
    ThabisoGithub opened #5136
  • Jan 30 2019 16:18
    IgorSasovets commented #4177
  • Jan 30 2019 15:05
    andrewchan-clover commented #4177
  • Jan 30 2019 13:43
    IgorSasovets commented #5135
  • Jan 30 2019 12:37
    EnzDev edited #5125
  • Jan 30 2019 11:47
    akshaymondal opened #5135
  • Jan 29 2019 14:33
    uinest commented #4822
  • Jan 28 2019 21:38
    cnishina commented #5132
  • Jan 28 2019 21:37
    cnishina commented #5134
  • Jan 28 2019 21:37
    cnishina closed #5134
  • Jan 28 2019 21:36

    cnishina on selenium4

    chore(release): bumpb version t… (compare)

  • Jan 28 2019 11:30
    think4ideas opened #5134
  • Jan 28 2019 11:01
    toniedzwiedz commented #2735
  • Jan 28 2019 09:42
    azorrozua commented #4786
Purushottam Jha
@purushottamjha
Upgraded to chrome 78.0.3904.70 and now when I run e2e tests in my angular 8 project my tests keep failing with the following error.
- Failed: No element found using locator: By(css selector, .configuration-step-body)

Executed 6 of 6 specs (1 FAILED) in 38 secs.
[11:12:58] I/launcher - 0 instance(s) of WebDriver still running
[11:12:58] I/launcher - chrome #01 failed 1 test(s)
[11:12:58] I/launcher - overall: 1 failed spec(s)
[11:12:58] E/launcher - Process exited with error code 1
BlueSapphire786
@BlueSapphire786
Hi All, I am new to Protractor and plan to use it as my web application under test uses Angular.
However, when I am following the steps mentioned on their page: https://www.protractortest.org/ and try to run the sample test I am getting following error: E/launcher - SessionNotCreatedError: Unable to create new service: ChromeDriverService
I am using selenium standalone server v3.141.59 , ChromeDriver v76.0.3809.126, Chrome 76
Ya Bilal
@yabilal
@CrispusDH that was the last thing in my head, but thank you. appreciate it :)
Rakesh Sahu🇮🇳
@Rakesh_Sahu59_twitter
Hi All, How to deal with below error  Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Stack:
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
I tried everything, Increased the timeout etc but this problem keeps coming, need permanent solution, so my team members who see the reports doesn't get confused if tcs are failed even though it gets passed all the time.
vinayak-prime
@vinayak-prime
Hi All, how to wait for pageToLoad completely using promises? tried async/await but elements not loading completely. could someone plz help?
return driver.wait(until.elementLocated(expectedResult), 10000).then(async function () {
            await driver.wait(until.elementIsVisible(outwardTravelDate), 10000);
            let actualResult = await outwardTravelDate.getText();
            assert.equal(actualResult, expectedText);
        });
Screen Shot 2019-10-28 at 12.25.18 PM.png
Vlad Ilin
@vladilins

It passes

it("delete competence", () => {
    const d = element.all(by.id("deleteIcon"));
    expect(d.count()).toBeGreaterThan(0);
  });

But when I try to click. I get: NoSuchElementError: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator By(css selector, *[id="deleteIcon"])

it("delete competence", () => {
    const d = element.all(by.id("deleteIcon"));
    expect(d.count()).toBeGreaterThan(0);
    d.get(0).click();
  });

Is somebody had such problems?

Bram-diederik
@Bram-diederik
I have problems with browser.driver.manage().window().setSize(Width, Height);
the width is set if 500px
but for 501 it goes to 500
for 550 it goes to 523 pixels
Is this a bug
I use chrome 77.0.3865.120.
Logesh Kumar
@logeshk
Hi all,
any update on chrome 78 support by protractor 5.4.2 ?
Oleksii
@CrispusDH
this command helps you ./node_modules/protractor/bin/webdriver-manager update --versions.chrome=78.0.3904.87
you could type chrome version that you have at a machine
Gopi Krishna Sangepu
@krish0205
@Bram-diederik Hi passing as chrome options in protractor config works for me
'chromeOptions': {
'args': [
'--window-size=1281,801',
]
}
Erol
@FrEaKmAn
hi, is anyone using browsermob-proxy? I can't seem to get har entries when requests are made thru angular http proxy
@logeshk to get 78 to work for me, I manually update webdriver-manager inside protractor node_modules
Gopi Krishna Sangepu
@krish0205

Hi all,

is anyone tried packing the page objects to an npm package and consuming through the package.json. ?
As we current doing for the protractor and other node modules.

To give more context. I want to utilize my page objects across mutiple projects and i dont want the same page objects/common /wrapper functions exist in all the repos
tfaron
@tfaron
any rumblings about a new version of protractor anytime soon?
Rahul sharma
@Rahulsh76144034_twitter
Hello all, Could anyone please tell me about how to integrate protractor-cucumber framework with Amazon S3 to store and fetch the test data. Did anyone tried it before?
Luke Anderson
@luker2
@krish0205 that's probably your best bet to avoid duplicate code. But keep in mind, any time someone updates a page object, all your other projects need to update their package.json version to reference the newest changes, and those changes could break other projects. You also probably don't want your page objects publicly hosted on npmjs.com - we use ProGet to privately host npm packages. If you aren't already, I highly recommend using TypeScript with all your protractor projects / npm libraries. I used typescript-library-starter to easily create an abstract typescript lib I could easily npm install in my other projects
Gopi Krishna Sangepu
@krish0205
@luker2 Thank you for the information. I'm not hosting them on to npmjs.org. We use internal nexus to host all the npm packages. As you mentioned any chnages to page objects will break the other dependent projects, unless they update package.json. The typescript-library-starter looks promising and might help with my issue.. I will give a shot. Thank you @luker2
Luke Anderson
@luker2
@Rahulsh76144034_twitter install the aws-sdk library into your protractor project, then read their docs to find an example of using credentials to first get authenticated to your storage account, then another example of uploading/downloading data. Since these will be async functions, you'll want to call them within protractor's control flow so your tests wait for the data to be retrieved before using it. pseudo-code:
    return browser.controlFlow().execute(() => {
        return aws.downloadSomething(downloadedData => {
            doSomethingWithMyData(downloadedData);
        }
    })
Rahul sharma
@Rahulsh76144034_twitter
Hi @luker2 , I have tried this to read and upload data file to AWS S3 bucket
image.png
image.png
I want to understand, is there a way where instead of downloading the full json or excel file from AWS bucket, we can fetch the key value to pass as test data from the AWS S3 bucket data file while executing the test case?
Gopi Krishna Sangepu
@krish0205
@Rahulsh76144034_twitter this might help https://www.npmjs.com/package/jasmine-data-provider
Rahul sharma
@Rahulsh76144034_twitter
Thanks @krish0205, I check the link but there is no information available on how to fetch data from AWS S3 using jasmine-data-provider
Luke Anderson
@luker2
@Rahulsh76144034_twitter it sounds like you're trying to store data for ALL test cases in E2Edata.json, but have each test access only the data it needs from the file. That's not possible, instead each test would have to download the entire file, then access the particular data for that test. I'd recommend having separate data files for each test.
Gopi Krishna Sangepu
@krish0205
It is not to read the data from aws. Once you fecth the JSON file from aws you can use this library to get the Key values from the file.
Rahul sharma
@Rahulsh76144034_twitter
Ok @luker2 , I can use seperate data file for each test case... Still my doubts is to pass a value like sendkeys("abc"), Can I fetch the value "abc" which is present in AWS directly from the AWS S3 bucket data file with out downloading the data file?
ohhkk @krish0205, yes this can help after fetching JSON file. But do you know how to connect with AWS S3 json file directly without downloading the json file in framework folder structure.
Is it possible to make connection with the datafile present in AWS during test case execution?
Gopi Krishna Sangepu
@krish0205

import TestData from '$e2e/test-data/E2eTestdata.json';
import dataProvider = require('jasmine-data-provider');

describe('Name of the group', () => {

dataProvider(TestData, (data) => {
it('should behave...', () => {
expect((data.KeyValue)).toBe(true);
element(by.id('id')).sendKeys(data.KeyValue1);
});
});
});

you can download the .json file from aws to your repo and try something like above using the jasmine-data-provider
@Rahulsh76144034_twitter I'm not entirly sure of that
Rahul sharma
@Rahulsh76144034_twitter
@krish0205 You are right... But I was just thinking how it could work without downloading the datafile instead to fetch data from AWS during the test case execution. Hope you understand my doubt. :)
Gopi Krishna Sangepu
@krish0205
I think you can make rest calls to get the object from aws, but I wouldn't go down that route. but i never tried
Rahul sharma
@Rahulsh76144034_twitter
ok @krish0205 , Thank you.. may be someone else have tried this in the group and can share the knowledge. :)
Luke Anderson
@luker2
I get what you're trying to do, but storing data (individual key/values) in s3 doesn't seem right (or at least makes me think of the increased cost by all the individual data reads by each test). Why not, for each e2e test, 1) download json file 2) read & store in memory 3) execute test steps, accessing the data you need, avoiding multiple calls to s3
Rahul sharma
@Rahulsh76144034_twitter
Thanks @luker2 for the suggestion. I liked your point regarding the biiling cost. I will try with your suggested steps.
Rick van der Meij
@rickvandermey
Anyone have experience with NGRX/effects with delay/polling for protractor. Angular doesnt get stable
nileshraval
@nileshraval
Hey guys could u please give me help for this issue
angular/protractor#5364