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
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
ArtemRudenko
@artemrudenko

@luiggidesigner_twitter Not sure why do you need this but in a case you app was built not in prod mode than you can try

browser.executeScript(`return ng.getComponent(arguments[0]).count`,   element.getWebElement());

where element is an ElementFinder for your component

@srikanthkln this is the question to google team) as I understand yes, protractor to be deprecated
5 replies
tej2903
@tej2903
I am using protractor + Jasmine framework and html reporter for reports is there any way I could generate a csv file for report. If I had to customize it what would be a better approach. Please help thanks.
Jan Molak
@jan-molak
Hi all, I've just published protractor-cucumber-framework with support for Cucumber 7.3.0. Run npm update to get it for your project :-)
masthandev
@masthandev
not able to interact my scripts with edge browser
image.png
Puru-rs
@Puru-rs
How to restart the browser before executing next spec? If we restart the browser will the memory be released which is consumed by heap?
gayathripvs
@gayathripvs
How can we validate a date in Spec??Like if I'm giving start and end dates,how can I validate both?
Jan Molak
@jan-molak
Hi folks, protractor-cucumber-framework version 8.2.1 with Serenity/JS 2.29.5 and improved support for reporting assertion errors now on NPM. Run npm update to get it.
StanislavKharchenko
@StanislavKharchenko
Hi all! Here is PR angular/webdriver-manager#498 which fixes issue with downloading invalid chromedriver binary. @cnishina Could you please look at it and merge? I see a lot of people are still on problem with older chromedriver 91 which cause a lot of failures. Unfortunately angular team behaves incompetently and totally ignore all user requests/issues
14 replies
Mustafa DAĞTEKİN
@Desertt
Hi I try to run protractor I got an error about ] E/runner - Unable to start a WebDriver session.
[16:44:12] E/launcher - Error: WebDriverError: unknown error: cannot find Chrome binary
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.19041 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 68 milliseconds I killed my crome driver I resetuo npm install
Mustafa DAĞTEKİN
@Desertt

Hi I try to run protractor I got an error about ] E/runner - Unable to start a WebDriver session.
[16:44:12] E/launcher - Error: WebDriverError: unknown error: cannot find Chrome binary
(Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.19041 x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 68 milliseconds I killed my crome driver I resetuo npm install

How can I solve

ArtemRudenko
@artemrudenko
@Desertt hi, first simple question - have you installed chrome?
Mustafa DAĞTEKİN
@Desertt
@artemrudenko Hi ,Firstly I removed node modules file after , npm install ,node node_modules/protractor/bin/webdriver-manager update ,webdriver-manager update --versions.chrome=91.0.4472.124 I got this error
ArtemRudenko
@artemrudenko
yes but chrome itself should be installed in the system, npm install would not set it up
webdriver manager would simple download chromedriver as well as other drivers not browsers
Mustafa DAĞTEKİN
@Desertt
@artemrudenko chrome is currently installed
ArtemRudenko
@artemrudenko
share your config please
Ramakrishna Telapolu
@sriram474
Hi Team when i am trying to run the protractor conf.js getting error
as ERROR EXIT CODE 135