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
GovinduRajesh
@GovinduRajesh
Getting below error :Message: Error: Error while waiting for Protractor to sync with the page: "both angularJS testability and angular testability are undefined. This could be either because this is a non-angular page or because your test involves client-side navigation, which can interfere with Protractor's bootstrapping. See http://git.io/v4gXM for details"
when running the con.js
this issue occured only when I convert the code to POM
without POM it is working fine
manognav04
@manognav04
@GovinduRajesh try browser.waitForAngular(False) in your conf.js file
nandhini2312
@nandhini2312
Hi All.
I have used protractor with cucumber for testing the angular application.While running the protractor testcases it showing different errors with same testcases .Is there a way to resolve this issue?
RashmiKalpeshChauhan
@RashmiKalpeshChauhan
@nandhini2312 - Which type of error you are getting? Tell the error so that we can help you
mads-sam
@mads-sam
Hi, guys! On the build agent I'm trying to run protractor, but got this:
(unknown error: DevToolsActivePort file doesn't exist) 15:35:50 (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.) 15:35:50 (Driver info: chromedriver=86.0.4240.22 (398b0743353ff36fb1b82468f63a3a93b4e2e89e-refs/branch-heads/4240@{#378}),platform=Linux 4.14.181-140.257.amzn2.x86_64 x86_64) 15:35:50 [12:35:50] E/launcher - WebDriverError: unknown error: Chrome failed to start: exited abnormally. 15:35:50 (unknown error: DevToolsActivePort file doesn't exist)
in configuration I've:
args: ['--no-sandbox', '--headless', '--disable-browser-side-navigation', '--enable-automation', '--disable-infobars', '--disable-extensions', '--disable-gpu', '--disable-dev-shm-usage', 'verbose' ]
On the local machine with normal chrome works normally. What I've miss there ? Thank you for help
bajRomi
@bajRomi
Hi all,
Need little advise on handling the flaky protractor test. How to you all deal with it?
I have tried using different protractor expected conditions but it does not always seems to work.
Any suggestions? Thanks !!
nandhini2312
@nandhini2312
image.png
1 reply
Here is the sample of error messages I'm getting while running the protractor tests. While the same test cases runs successfully sometimes, it fails with the following errors at times.
image.png
amirum
@amirum
Hi all, i have been struggeling for a while with a couple of issues and i am wondering if anyone here is able to pint me in the right direction. 1.I am gettin an error message: Unknown test suite with error code 105 when i execute the test from the command line using --sute=something. The suite is defined in the protractor config an is correct.
  1. Also when i run --specs=some path using command line the specs that i typed in is dissregarded.
Thanx in andvance!
fb1s
@fb1s

Hi,

I need help determining what is going on with expect(x).toEqual (y) intermittently fail with "- Expected 'x' to equal ''". My log messages before the test show that both X and Y are equal.

specifyNumOfRows: (testTitle, c: { rowsPerPage: number }) => {
it(testTitle, async () => {
if (c.rowsPerPage > (footer.rowsPerPage * footer.numberOfPages)) {
throw Not enough rows to set rowsPerPage to ${c.rowsPerPage}.;
}
// set value
await footer.setRowsPerPageValue(c.rowsPerPage.toString());
await footer.updateState();
const newRowsPerPage:number = footer.rowsPerPage;
const expectedRowsPerPage:number = c.rowsPerPage;
console.debug(.. Expect rows per page ${expectedRowsPerPage} to
+equal ${newRowsPerPage});
expect(expectedRowsPerPage).toEqual(newRowsPerPage);
}, 10000);
},

Result:
.. Expect rows per page 10 to equal 10
...concluding test 3
× Verify a user can specify the number of rows.
TestingFunction:specifyNumOfRows(rowsPerPage:10);
Test Rail ID:"C469123"
Test Number:2;

  - Expected '10' to equal ''.

Thanks.

sudha-test
@sudha-test
Hi, I am facing issues with geckodriver , I am unable to install it and run bat file. while running browser config file will come in command prompt.
nandhini2312
@nandhini2312
image.png
Hi,I am facing issue while creating the session for protractor .I need help on resolving this error.
praveenngp15
@praveenngp15
@nandhini2312 Update your chrome or else use webdriver-manager update --versions.chrome 86.0.4240.22
Craig Nishina
@cnishina
Hello everyone. Just thought I'd say hi. We'll have more news about Protractor in 2021. I'm working on a similar project on December 18th on twitch (its my day off). I'll be focused on working on that project and will try to field questions. You know, what have I been up to? What's up with Protractor. That sorta thing.
Jan Molak
@jan-molak
Hey @cnishina! Sounds great, if you'd like any help or feedback from people developing frameworks and plugins around Protractor I'd be happy to help.
Craig Nishina
@cnishina
Oh hey! Yeah I am 80% done with the selenium-webdriver version of my project. I'll have more to show off on the 18th. Shameless plug: twitch.tv/cnishina (because I don't stream often)
Yehuda Miller
@pittgoose
Hi craig, can you tease anything in regards to protractor? There has been seemingly no activity on the project since May and I'm worried that the project is just dead.
in which case I'd need to start working on a framework overhaul to make sure I'm using a product that will continue to get updates and implement new features.
Craig Nishina
@cnishina
I will soon. I have one suggestion, if your code is still on the control flow, please stop using it. Did you can get it to asyc await, it will make your life easier.
I still need to go through googles internal open source review. We have already talked to the new Protractor repo owners on the angular team.
Other than December 18, i am trying to get this on our team's roadmap so i can work on this during work
Jan Molak
@jan-molak
@cnishina would you foresee your project to replace Protractor, or would you expect Protractor to incorporate what you've been working on?
Craig Nishina
@cnishina
There is a way to incorporate what I've done with Protractor. My project is basically to library-ify Protractor so that it doesn't have the runner, configs, extra wrapping of jasmine, etc. There are some neat things planned on the roadmap and I'll share that out when I get approval / actually finish (by finish, I would need to also start) writing the doc.
Jan Molak
@jan-molak
Haha, no worries, I like the sound of that :-) Are you doing it in TypeScript? It would be lovely to have typedefs built-in
Craig Nishina
@cnishina
TypeScript or bust. :)
Jan Molak
@jan-molak
:D :thumbsup:
Craig Nishina
@cnishina
It was difficult getting Protractor to emit types (back in the day: version 4). That was our Protractor JS to TS migration. We hit a few interesting issues with global objects.
Jan Molak
@jan-molak
Yeah, it's always challenging to retro-fit types on an existing project
Going back to what you said, it feels like there could be quite a few libraries you could carve out of Protractor
Craig Nishina
@cnishina
Yup! There are a few projects that could spawn after removing the runner.
Craig Nishina
@cnishina
I'm streaming Protractor stuff on twitch if you want to join. https://twitch.tv/cnishina
I should be online for another hour or so.
abdou-hafeidh
@abdou-hafeidh
Hi All,
I did not find a solution for this error
From: Task: WebDriver.findElements(By(css selector, *[id="login"]))
I need help !
ashwinsgm
@ashwinsgm
I want to add the firefox options for protractor for autodetect proxy
In Selenium Java, we write something like this
FirefoxOptions options = new FirefoxOptions();
FirefoxBinary firefoxBinary = new FirefoxBinary();
options.addPreference("network.proxy.type", ProxyType.AUTODETECT.ordinal());
options.setBinary(firefoxBinary);
What is the equivalent option in protractor
Can anyone help on this. Protractor launches firefox and url is not navigating
priyankagour1107
@priyankagour1107
Hi Team,
I am facing this issue since morning, I know this issue is because of compatibility but I tried everything still not able to solve it.
Can some one please help me.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '----', ip: '-----', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '15.0.1'
Driver info: driver.version: unknown
[17:38:59] E/launcher - WebDriverError: Timed out waiting for driver server to start.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: '-------', ip: '----', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.15.7', java.version: '15.0.1'
Driver info: driver.version: unknown
manudee
@manudee

hey Everyone, I started seeing webdriver session not started error since this morning. Here is the exact error I get

[21:02:18] I/direct - Using ChromeDriver directly...
21:02:18  [21:02:18] E/runner - Unable to start a WebDriver session.
21:02:18  [21:02:18] E/launcher - Error: Error: spawn Unknown system error -86
21:02:18      at ChildProcess.spawn (internal/child_process.js:373:11)
21:02:18      at Object.spawn (child_process.js:559:9)
21:02:18      at exec (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/io/exec.js:116:27)
21:02:18      at resolveCommandLineFlags.then.args (/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/remote/index.js:219:25)
21:02:18      at processTicksAndRejections (internal/process/task_queues.js:86:5)
21:02:18  [21:02:18] E/launcher - Process exited with error code 100

I am using directConnect:true config and, chromedriver path I have provided was working till yesterday without any change. What am I missing? I appreciate any help in advance. Thanks

Craig Nishina
@cnishina
Yup I just noticed this too. There was a PR that I merged in yesterday
It is because ChromeDriver is downloading the m1 chipset version. I'll merged the fix in but it'll require doing an npm publish. I'll let you know when the fix is in.
Craig Nishina
@cnishina

This has been published to npm as version 12.1.8. After updating to version 12.1.8, you will need to run webdriver-manager clean before running webdriver-manager update.

See https://stackoverflow.com/questions/65609111/getting-driver-info-driver-version-unknown-while-running-scripts-using-protr/65638301#65638301 and angular/webdriver-manager#478

StanislavKharchenko
@StanislavKharchenko
Hi, Craig! Do you have an information regarding Protractor support in 2021 and nearest future? We have a lot of tests and wrappers, which use protractor, for E2E testing of angular based project. Would like to know if need to thinking about switch to another framework for testing angular and re-write our code. Thank you!