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
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
i googled and suggested to update the webdriver-manager update
i am unable to complete the download of the drivers with the time out error
could you please help me here
Ramakrishna Telapolu
@sriram474
Dear Gitter members, can you kindly help me here
ArtemRudenko
@artemrudenko
hi @sriram474 are you behind proxy?
1 reply
could you please provide us with the error output
Ramakrishna Telapolu
@sriram474
Hi ArtemRudenko, i have resolved the issue that is due to the spellCheck error in conf.js given browser as browsername instead of browserName
it got resolved now
@artemrudenko, Do you have any idea on how to identify the element (input element) which is in the shadow DOM
7 replies
Dear Gitters, if any of you could helpme on how to identify or locate a element under the shadow DOM i would be grateful to you
Ramakrishna Telapolu
@sriram474
here is my DOM :
sorry i am not able to add the screenshot
@sriram474
Hi All
i need help on how to locate input element with certain name underlying the shadow root element in DOM
appreciate if any of you could help me on how to resolve it
shadow-root > div>div>div>input
Ramakrishna Telapolu
@sriram474
Hi @Xotabu4
@Xotabu4 hi
Puru-rs
@Puru-rs

Hi i am trying to run protractor using jenkins in linux box, when the job is executed it is giving an error
[21:58:12] I/direct - Using ChromeDriver directly...
[21:58:12] E/launcher - unknown error: cannot find Chrome binary
(Driver info: chromedriver=91.0.4472.19 (1bf021f248676a0b2ab3ee0561d83a59e424c23e-refs/branch-heads/4472@{#288}),platform=Linux 3.10.0-862.11.6.el7.x86_64 x86_64)
[21:58:12] E/launcher - WebDriverError: unknown error: cannot find Chrome binary

can any one solve this error?

3 replies
gezahorvath
@gezahorvath
Hi I get the old issue of EADDRINUSE , angular/protractor#4447 with Protractor 7.0.0.
I use chromedriver on windows 10 with directconnect set as true. I tried to raise the MaxUserPort and TIME_WAIT variables in windows but still get the issue. What can I do to get rid of it? Do you have some idea for a workaround?
cs2021
@cs2021:matrix.org
[m]
Hi, after upgrading angular to version 9.1, node to version 12.22.3 and typescript to 3.8.3(removed deprecations wrt typescript v4 as suggested), I am not able to run a feature file (using npm run e2e). Error is - 'Error: TSError: ⨯ Unable to compile TypeScript'. It gives this error for a particular file where it gives an error for 'Cannot find module 'xyz'', but that file does not have compilation error and works fine while serving the application. Currently using chrome version 90.0.4430.72. I am using protractor v5.4.2, protractor-cucumber-framework v6.1.1, protractor-http-client v1.0.4, selenium-webdriver v3.6.0, webdriver-manager v12.0.6. How can I get the feature files running?
Sri Harsha
@harsha509
Hi,
Will the protractor supports testing angular 12.x.x version?
Looks like am facing sync issues
StanislavKharchenko
@StanislavKharchenko
Hi, we are using Protractor with angular 12, works ok. What issues you have?
StanislavKharchenko
@StanislavKharchenko
@harsha509 regarding sync, check if all task are finished before interact with element. https://www.protractortest.org/#/timeouts
Sri Harsha
@harsha509
Timed out waiting for Protractor to synchronize with the page after 60 seconds. Even I tried browser.ignoreSynchronization = true;
And the problem is the team is using protractor 3.0.0