Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 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
Hi All,

Hi All, I am new to protractor - automation testing. I am following protractor website to do create few dummy tests.
Problem statement: i don't see line number when any test case fails
for eg:
D:\ProtractorDeltaPOC>protractor conf.js
[07:53:44] I/launcher - Running 1 instances of WebDriver
[07:53:44] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[07:53:51] I/launcher - 0 instance(s) of WebDriver still running
[07:53:51] I/launcher - chrome #01 failed 1 test(s)
[07:53:51] I/launcher - overall: 1 failed spec(s)
[07:53:51] E/launcher - Process exited with error code 1

in the above code, it says test is failed but there are no reference. Can someone help me.

Sri Harsha
Hi @vnvbsudhakar, Try to enable includeStackTrace:true in jasmineNodeOpts. And also can you please ping me your spec file, it should log the stack traces if the test fails basically !!!
@Harsha509 : I shall try this and get back to you. By any chance do you know where can I do proxy settings
Good morning a question I want to make a configurator for word files and be able to export them, someone knows of some pluggin
in Angular
Sri Harsha

Hi @vnvbsudhakar , you can set proxy in capabilities like this

capabilities: {
'proxy': {
'proxyType': 'manual',
'httpProxy': 'hostname.com:1234'

If that does not work, try to set node proxy using npm like below
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Hope this helps!
but how do we enter user name and password
Sri Harsha

@vnvbsudhakar , like this

npm config set https-proxy http://"username:password"@proxy.company.com:8080

oh double quotes, I tried this but without double quotes
will try and update you

my spec file is
describe("Launch browser", function(){

my conf file is
exports.config = {
framework: 'jasmine2',
// seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['tests/asyncFix.js'],

this is the log in terminal
[18:05:05] I/launcher - Running 1 instances of WebDriver
[18:05:05] I/local - Starting selenium standalone server...
[18:05:07] I/local - Selenium standalone server started at

No specs found
Finished in 0.004 seconds

[18:05:11] I/local - Shutting down selenium standalone server.
[18:05:11] I/launcher - 0 instance(s) of WebDriver still running
[18:05:11] I/launcher - chrome #01 passed

Always I get No specs found and tests are not executing

Mayank Verma
@artemrudenko Thanks for the information!
Yogendra Porwal
hello /@all I have improvised an html reporter for protractor with jasmin, it also combined a console reporter.
please try once and let me know the feedback
note: its just an improvisation
hi all , please any idea how to write protractor test for auto checking backend error logs and extracting the logs related to prod server ? thanks
has anyone encountered running webdriver-manager start in jenkins and it hangs and does not continue with test
no error even after 5mins
Sri Harsha
Hi @jedwantstocode providing jenkins log might help us to debug the issue.
good morning all. Currently, when I run my tests locally, the login credentials(username, password) is in a json file and it is gitIgnored so it wont be uploaded to the public repo. I wanted to run my tests in jenkins, is there a way to handle this where I dont have to upload the username and password to the app but enable login during my test?
@Harsha509 Hi sri, I updated my test to use the standalone server and commenting out the selenium address in my conf. it did run my test but just realized now that jenkins does not allow me to manage the app when its inside the iframe
Sri Harsha
okay, so if you dont want to upload your credential file. try to encrypt the credentials and decrypt when you want to use
Sri Harsha
This package might help you https://www.npmjs.com/package/encryptjs
Mayank Verma
Hi All, is there a way to access the cookies through xmlhttprequest method?
Sri Harsha
@mayankverma24 Have you tried => var cookie = XMLHttpRequest.getAllResponseHeaders(Set-Cookie);
or Set-Cookie2
Mayank Bhola
Hello there. I have submitted a PR here at angular/protractor#5260. I have tried signing CLA multiple times but still it shows no-cla. Can anybody help me here?
Hi, I am struggling to find how to select elements in native app thru appium using accessibility id. the global.by object has no locator by accessibility id. Is this not supported thru protractor and I should use a different locator type?
Hi @Harsha509 again! thank you. I will look into that and come back. Btw, our application uses the microsoft login service and then after successful login, it loads the application. I hope your link will help with that.
hi @Harsha509 , Im sorry, to encrypt I still have the push my code with my actual username and password?
Sri Harsha
hi @jedwantstocode, No Need to, you can first encrypt credentials in your local machine and provide pass the encrypted passphrase and secret-key in your scripts. Which you can decrypt in your scripts where ever required
with the encrypted string, I can use that in place of the password in my normal json file where I usually store my password?
Sri Harsha
Yes, you can use encrypted string and decrypt when you want to use original password
Aasim Anwar

Dear All,

Can someone check my code and tell me, please, why isSelected returning 'false'?

it("Filter Test", function(){
let artwork = element(by.xpath("//div[@class='c-btn form-control'][span[text()='Artwork Title']]")).click();

let checkbox = element(by.xpath("//label[text()='Akoda-Nari Kabuto (2)']"));

    }); // end of it
@Harsha509 will they be able to decrypt my password, using the same tool, since they will see it once I upload in git?
Sri Harsha
Yes then can, if they only know the secret code used for encryption
Hello, what is the purpose of this line? https://github.com/angular/protractor/blob/cc501f71bc1f995a83c1041e1aa489ea0f105679/lib/launcher.ts#L210 What is the purpose of forking only when totalTasks > 1? In my case, I would like to fork even when running only a single spec file. The output format of the logs is different whether forkProcess is true or not. I would like it have consistent output format regardless of tests or suites run.
Star Yznaga
Is there support existing or planned for running Protractor specs/parts of specs only for components that actually changed in the current commit, sort of like when using the Jest CLI with --changedSince or --onlyChanged?
Lorenzo Urbini
i'm building a docker image but after migrating to protractor@6.0.0 I've started to get:
E/launcher - Error: WebDriverError: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
any idea of the reason? also why is 6.0.0 not marked as stable yet?
Hi everyone, I'm in a strange situation where protractor seem not updating the update-config.json files. What's happening is my version of Chrome is newer and in chrome-response.xml there are newer versions of chromedriver, but update-config.json is poiting to an older version. Why webdriver-manager is no updating update-config.json? Below the tipical error running ng e2e:
[13:54:05] I/config_source - curl -o/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/node_modules/webdriver-manager/selenium/chrome-response.xml https://chromedriver.storage.googleapis.com/
ℹ 「wdm」: Compiled successfully.
[13:54:05] I/update - chromedriver: file exists /home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6.zip
[13:54:05] I/update - chromedriver: unzipping chromedriver_74.0.3729.6.zip
[13:54:05] I/update - chromedriver: setting permissions to 0755 for /home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_74.0.3729.6
[13:54:05] I/update - chromedriver: chromedriver_74.0.3729.6 up to date
[13:54:06] I/launcher - Running 1 instances of WebDriver
[13:54:06] I/direct - Using ChromeDriver directly...
[13:54:06] E/launcher - session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 5.2.7-200.fc30.x86_64 x86_64)
[13:54:06] E/launcher - SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Linux 5.2.7-200.fc30.x86_64 x86_64)
    at Object.checkLegacyResponse (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/selenium-webdriver/lib/error.js:546:15)
    at parseHttpResponse (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/selenium-webdriver/lib/http.js:441:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/selenium-webdriver/chrome.js:761:15)
    at Direct.getNewDriver (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/built/driverProviders/direct.js:77:33)
    at Runner.createBrowser (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/q/q.js:834:54)
    at /home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/q/q.js:863:30
    at Promise.promise.promiseDispatch (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/q/q.js:796:13)
    at /home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/q/q.js:556:49
    at runSingle (/home/nbuso/projects/ebeye-local/src/ebinocle-webjs/node_modules/q/q.js:137:13)
[13:54:06] E/launcher - Process exited with error code 199
chromedriver is available also for version 77, but protractor stick with 74! any idea?
Tedi Roca
@nbuso upgrading webdriver-manager manually should allow you to use the latest chromedriver
@tedi.roca_gitlab no if run webdriver-manager update it keep dowloading version 74
Tedi Roca
running this command will update chromedriver, but not the wedriver-manager itself
there was a bug with the webdriver-manager not including the latest version of the chromedriver
running npm install -g webdriver-manager@lates and then wedriver-manager update should fix it