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
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
sudha sree
@sudhasree8_gitlab
Hi All, I m unable to translate English to French in Jenkins .I want to get "Français" but in Jenkins i am getting as "Fran�ais", I am getting this issue "�" .Please update at your earliest convenience ;-)
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
@StanislavKharchenko : Thank you.. Actually, When I click on upload photo it prompts the file explorer pop up, So how to handle it ? I know from selenium point of view there are tools like sikuli/auto IT which are used to automate windows based application, However wanted to know the approach from Protractor side.
StanislavKharchenko
@StanislavKharchenko
@T-e-j-k-u-m-a-r What will be after your select file from window? You need press again on upload? I think for your case you need to observe DOM tree and identify into what place file put before post to server. I think you can reproduce this scenario using protractor/selenium browser.executeAsyncScript to modify DOM
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
@StanislavKharchenko : For now, I haven't figured out a way to handle file upload explorer pop up, Could you please
share some doc for the same
StanislavKharchenko
@StanislavKharchenko
You don’t need to handle popup browser, but just need to emulate uploading process. You can ask the question on stackoverflow, there are also several similar questions asked by another guys. I think also Selenium could provide some workaround for this. I don’t have such scenarios in my e2e, so I can’t provide examples.
spmiller
@spmiller
In our tests we set the full file path on the file input and submit the form -- seems to work OK
Tejkumar Kempaiah
@T-e-j-k-u-m-a-r
Thanks @StanislavKharchenko : Its resolved now.
Thanks @spmiller
shtlrs
@shtlrs
Hey guys, I have a question concerning the usage of the async/await pattern with protractor.
I noticed that the error stack trace is missing a lot of references to the files. Has anyone find a way to solve this ?
Jan Molak
@jan-molak
Nice work on angular/protractor#5516 @StanislavKharchenko! Hopefully @cnishina and @kyliau can release your fix soon :-)
Craig Nishina
@cnishina
Wow, I have not looked at Protractor in forever. It looks like Keen is taking this one across the finish line.
StanislavKharchenko
@StanislavKharchenko
This process is very very slow and I'm not sure when release will actually cut. I've recently contacted to Keen, he said that Angular team collecting companies/orgs to share maintenance of Protractor. So we don't know who will be as main maintainer. In my team we urgently moved to protractor fork with changes done in my PR, since chrome v91 has breaking changes and fail all our tests. And I want to say that Protractor v6 works fine. I very thanks to Craig @cnishina for the great job done under v6 and removal control flow.
Jan Molak
@jan-molak
@StanislavKharchenko I've recommended people on StackOverflow to vote on your PR, feel free to add any suggestions I might have missed - https://stackoverflow.com/questions/67844716/protractor-issue-after-update-chromium-version/67888592#67888592
Jan Molak
@jan-molak

Hi all, if you're using Protractor with ChromeDriver 91, your tests might break - check out my recent article describing the problem and potential solutions.

Also, I've just published:

  • Serenity/JS 2.29.1 - with support for Chrome 91
  • protractor-cucumber-framework 8.1.1

Run npm update to update them on your project.

tej2903
@tej2903
hi everyone I am running my protractor tests and experiencing the following issue. Chrome application was opened and immediately closed showing this error
Failed: Error while running testForAngular: javascript error: document unloaded while waiting for result
(Session info: chrome=91.0.4472.77)
(Driver info: chromedriver=91.0.4472.19)
3 replies
Bmoe
@bmoes-coderoom

Hello,

I have an angular app that is on angular v5. Company app that I cannot upgrade at the moment. Want to setup Protractor e2e tests (Using Cucumber). We have different environments (Dev, Test, Prod, etc.). All environments would have same settings with different values (like all environments have apiKey setting but value different in each environment). How do I pass environment variable to the ng e2e command and use it to load the right configs? I have settings in a json file.

Puru-rs
@Puru-rs

Hello, when I running all the specs I am getting below error. <--- Last few GCs --->

[13148:000001416C79F440] 4115812 ms: Scavenge 1354.6 (1422.0) -> 1354.3 (1422.5) MB, 6.9 / 0.0 ms (average mu = 0.097, current mu = 0.057) allocation failure
[13148:000001416C79F440] 4115841 ms: Scavenge 1354.9 (1422.5) -> 1354.6 (1423.5) MB, 7.2 / 0.0 ms (average mu = 0.097, current mu = 0.057) allocation failure
[13148:000001416C79F440] 4115883 ms: Scavenge 1355.3 (1423.5) -> 1355.0 (1424.0) MB, 8.5 / 0.0 ms (average mu = 0.097, current mu = 0.057) allocation failure

<--- JS stacktrace --->

==== JS stack trace =========================================

Security context: 0x0172a561e6e9 <JSObject>
0: builtin exit frame: parse(this=0x0172a5611a21 <Object map = 000002CE34A842A9>,0x00c2bfb02201 <Very long string[640958]>,0x0172a5611a21 <Object map = 000002CE34A842A9>)

1: .json [0000030832543D99] [internal/modules/cjs/loader.js:797] [bytecode=00000372EDECAC29 offset=51](this=0x0244e3b84d69 <Object map = 000002CE34A869D9>,module=0x030c98e90159 <Module map = 000002CE34AD3F59>,filename=...

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

24 replies
Please help me in resolving javaScript heap out of memory issue
SrikanthK
@srikanthkln
From github issue - angular/protractor#5502 - is the protractor going to be deprecated by 2022 ?
SrikanthK
@srikanthkln
@artemrudenko , the issue is closed . is the protractor going to be continued ? Who can give the official confirmation?
Luiggi
@luiggidesigner_twitter
hey everyone, Is it possible to get the value of var inside component from protractor in e2e? Like count:number =2; I need to iknow in test what's the value in this var
is it possible?
component in angular no in test