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
saikrish06
@saikrish06
the output is
Complete Text at3 ->Archival for year: 2040 completed successfully
Complete Text at4 ->Archival for year: 2040 completed successfully
Complete Text at5 ->Archival for year: 2040 completed successfully
Complete Text at6 ->Archival for year: 2040 completed successfully
Complete Text at7 ->Archival for year: 2040 completed successfully
Complete Text at8 ->Archival for year: 2040 completed successfully
Complete Text at9 ->Archival for year: 2040 completed successfully
Instead the logic I need is once it finds the first maching text it should there and print it..and also I can expect on the same
Please help with me
Craig Nishina
@cnishina
elemArr = element.all( ).filter((elem) => { return elem.getText().then(txt => { return txt === messageText }});
firstEl = elemArr.first()
something like that?
You can filter on an element array to get an element array that matches the xpath + has the text you want.
then get the first element.
mcroker
@mcroker

I'm having an issue where protractor successfully launches chrome and executes tests the first time after I reboot, and then subsequently fails with

[13:48:00] I/launcher - Running 1 instances of WebDriver
[13:48:00] I/direct - Using ChromeDriver directly...
[13:48:01] E/launcher - socket hang up
[13:48:01] E/launcher - Error: socket hang up
    at connResetException (internal/errors.js:570:14)
    at Socket.socketOnEnd (_http_client.js:440:23)
    at Socket.emit (events.js:215:7)
    at endReadableNT (_stream_readable.js:1184:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)
[13:48:01] E/launcher - Process exited with error code 199
chromedriver_89.0.4389.23.zip
Google Chrome 89.0.4389.90

Any thoughts on where to even start looking greatly appreciated...

mcroker
@mcroker
Hmmm.... the plot thickens... restarting my firebase emulator resets the above issue. Guess it's not as I first suspected a webdriver issue.
Raymond Barlow
@raymanoz
Hi
does anyone know why the imported protractor would be undefined?
I'm using it in a serenity-js spec, similar to the example setup that they do, but for some reasons is undefined when I try to use it
import {protractor} from 'protractor';
:
BrowserTheWeb.using(protractor.browser),
when I get to the last line, TypeError: Cannot read property 'browser' of undefined
3 replies
mcroker
@mcroker
If it helps my import statement is
import { protractor } from 'protractor/built/ptor';
StanislavKharchenko
@StanislavKharchenko
@raymanoz Use import { browser } from 'protractor';
Jan Molak
@jan-molak

Hey folks, I've just created a new demo project showing how to use protractor-cucumber-framework to produce Serenity reports:

Thoughts and feedback welcome!

Krishna Kumar Singh
@kwishna
Hey Guys, Can We Integerate Protractor With Jest? Please share any article or demo project if you have.
ArtemRudenko
@artemrudenko
Future of Angular E2E & Plans for Protractor angular/protractor#5502
Craig Nishina
@cnishina
My new library (that I keep saying will eventually happen) runs some of my tests in Jest and some of my tests in Jasmine. Some good news is that I have had some engineering time to work on it (like until I am done which is really exciting).
StanislavKharchenko
@StanislavKharchenko
Hello, Craig! Thanks for job! Do Angular or Google include Arctangent to common roadmap and support it? angular/protractor#5502 - looks like that Angular guys just want to throw out the e2e and leave everyone with own headache, IMO.
Craig Nishina
@cnishina
I am trying to find a good home for it in a GitHub under a Google org and I'm working on roadmaps for internal users and external community.
Jan Molak
@jan-molak
Hey folks, Serenity/JS will continue to support Protractor and also provide dedicated modules for other Web testing tools; you can vote on which one you'd like to see first at https://twitter.com/SerenityJS/status/1379368915017592835?s=20
Krishna Kumar Singh
@kwishna
I am trying to automate an 'angular' application.I am getting 'script timeout' if don't put 'browser.waitForAngularEnabled(false)' in code.
Craig Nishina
@cnishina

wait for angular waits for angular to exit the zone. If your app does not exit the zone, the page will keep waiting and your script will timeout.

it is perfectly fine to not wait for angular. Just know that you should put browser.waits to wait for an element to appear on the page on load instead.

StanislavKharchenko
@StanislavKharchenko
You can also check if app you testing doesn’t have async scripts run inside angular. If yes - you need to place it outside angular zone. Craig, as for “waits for appear” - this not always works. Even if element is present in dom we not ready to interact with it untill all scripts are finished. We faced with it in our e2e tests and usually using enabled "waitForAngular" and, optionally, browser.waitFor(...). So, that's why, we rely for this feature and will wonderful to have in Arctangent :)
Matt Horstman
@mattdhorstman
Do I need to use SELENIUM_PROMISE_MANAGER=false to use async/await even if I'm using directConnect to chrome?
11 replies
Jan Molak
@jan-molak
Hey folks, we've just released protractor-cucumber-framework v8.0.3 with the latest Serenity/JS and support for Cucumber v1-v7. Please run npm update and let me know if you spot any issues.
1 reply
StanislavKharchenko
@StanislavKharchenko
Where did Craig go? we are glad to see him with interesting news
Matt Horstman
@mattdhorstman
I'm currently re-writing some protractor scripts, and I'm running into a strange issue. In the linked gist I'm attempting to click on a nav link, which reveals a sub-menu, and then click on a sub-menu item. I've added a lot of debugging code, and the script seems to hang when I try to get the set of sub-items. Any thoughts? https://gist.github.com/mattdhorstman/ea24ddb70b80a52591b7e8fa909ff66b
1 reply
Jan Molak
@jan-molak
Hi all, protractor-cucumber-framework v8.0.4 is now available on npmjs.com and ships with the latest Serenity/JS version 2.27.0. Please run npm update if you're using the plugin (or Serenity/JS itself ;-) )
BHARAT BHUSHAN SHARMA
@BHARATB95724468_twitter
sendKeys(protractor.Key.ARROW_DOWN) is throwing an error in when I use chromerdriver 89 and webdriver 3.141.59 and I am not keeping w3c: false. I do w3c to be true: Failed: sendKeysToActiveElement
Craig Nishina
@cnishina

Where did Craig go? we are glad to see him with interesting news

Craig is not at the phone right now. Please leave a message after the beep. What's up?

StanislavKharchenko
@StanislavKharchenko

Where did Craig go? we are glad to see him with interesting news

Craig is not at the phone right now. Please leave a message after the beep. What's up?

Yeah! btw, often got messages from unknown numbers and when hear it - just advertising from banking or credit organisations)

StanislavKharchenko
@StanislavKharchenko
Looks like Angular considering possibility to have new Protractor (like v6) without control flow, but they trying to find collaborators who want to maintain it.
StanislavKharchenko
@StanislavKharchenko
And Craig's project will be as good continuation (codename Arctan). Craig, maybe you can share your project and interested users can contribute it?
Craig Nishina
@cnishina
Not yet. I am still working on some internal stuff... Still trying to figure out how to open source things.
buddyackerman
@buddyackerman

wait for angular waits for angular to exit the zone. If your app does not exit the zone, the page will keep waiting and your script will timeout.

it is perfectly fine to not wait for angular. Just know that you should put browser.waits to wait for an element to appear on the page on load instead.

I was just starting to use Protractor and our app requires authentication so I had to turn off wait for angular so that I could handle the redirect to tour login page (Azure ADB2C) and they login and come back to the app. First is it ok/recommended to turn wait for Angular back on or am I now relegated to doing waits with ExpectedConditions?

StanislavKharchenko
@StanislavKharchenko
For default experience with Protractor it is ok to switch on “waitForAngular”. But this is up to app you test, if it correctly works with angular zones. Just to switch it on and check if next steps of your test case are passed.
buddyackerman
@buddyackerman
So, now I'm having a problem with async tests. All of my tests are async and the are now stepping on each other. Some of them access a menu, one to count the items in the menu and others to click certain items in the menu but it appears that the tests are running all at the same time because they're async. How do I handle this?
StanislavKharchenko
@StanislavKharchenko
Could you please share examples?
buddyackerman
@buddyackerman
@StanislavKharchenko It seems to be working now not sure why it wasn't before.
I have a new question, how do I run protractor against a deployed instance of my app. Say my QA environment. When using angular cli to run e2e tests it always wants to build the app and run it from local host then run tests against that. How do I just run the tests against my already deployed QA, stage or Prod environment?
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
Is there any documents/video on file upload and file download by Protractor ?
StanislavKharchenko
@StanislavKharchenko
@buddyackerman You can run Protractor by "protractor" binary. Just type: "npx protractor <your_conf>" And so you don't to get attached to app folder.
StanislavKharchenko
@StanislavKharchenko
Hello, guys! Here is could be issue when get release of Chrome v91. https://bugs.chromium.org/p/chromium/issues/detail?id=1205107 Seems we can't use w3c: false and need workaround. I would like to have some news regarding upgrades to Selenium 4 (Arctangent or Protractor "v6"-ish project). I don't understand how really contact Angular team, they ignore all and all. Maybe @cnishina Craig could help?
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
Thanks @StanislavKharchenko
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
Any update on this request ? Is there any documents/video on file upload and file download by Protractor ?
StanislavKharchenko
@StanislavKharchenko
@T-e-j-k-u-m-a-r Files downloading process control by your browser (webdriver) and you can configure in capabilities in what folder path it will be downloaded. The upload process is just rely on your app. You need to set field with folder path (sendKey) and then press upload button. Like
await element(by.id('fileUpload')).sendKeys(pathToFile);
await element(by.id('btnUpload')).click()
Jan Molak
@jan-molak
Hi folks, I've recently published protractor-cucumber-framework v 8.1.0, which introduces support for Node 16 and uses Serenity/JS 2.28.1 under the hood. Please update at your earliest convenience ;-)
1 reply