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
Tedi Roca
@tedi.roca_gitlab
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
nbuso
@nbuso
I'm version on 5.4.2 that is the latest if I'm not wrong
Tedi Roca
@tedi.roca_gitlab
protractor installs webdriver-manager as dependency, and in that case the webdriver-manager that is installed does not allow installing the lastest chromedriver
the webdriver-manager itself can be installed and updated manually to get the latest version
nbuso
@nbuso
alright, I will try and this mean I need to change my CI/CD pipeline... let's see
Tedi Roca
@tedi.roca_gitlab
yep - not ideal, but it seems this is the only solution until the dependency is updated
here you have more info: angular/webdriver-manager#404
nbuso
@nbuso
uhm! how do you make protractor pointing to the global installed webdriver in standalone mode? do I need to set the chromedriver and geckodriver path manually?
Tedi
@tediroca
in my case protractor directly uses the globally installed version, but if this does not work you can always navigate to the node_modules directory where the webdriver-manager dependency was installed when installing protractor and update that local version
nbuso
@nbuso
yes I updated the local version to test for now, the global version was not picked
nbuso
@nbuso
@tediroca thanks for pointing out the ticket
Pedro Hyvo
@pedrohyvo
Hey guys, I'm facing with the following issue: [09:52:05] 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=Windows NT 10.0.18362 x86_64) [09:52:05] 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=Windows NT 10.0.18362 x86_64)
Does anyone here has any thoughts?
Tedi
@tediroca
Hi @pedrohyvo . Latest versions of Chrome are not supported through the chromedriver versions installed via the webdriver-manager version that Protractor 5.4 installs. There is more info and a workaround in angular/webdriver-manager#404
Pedro Hyvo
@pedrohyvo
@tediroca thanks
Tedi
@tediroca
you are welcome!
Julian Didier
@theredfish
Hello o/
I'm trying to undestand why I can't use the webDriverProxy with the http protocol and seleniumAddress with the https one? Is there someone who know it works by any chance? I'm getting an EPROTO error.
Julian Didier
@theredfish
how it works *
abhijeetman235
@abhijeetman235

How to execute feature files in sequence in cucumber for visual studio code,
Eg- if I am having two feature files i.e customerconf.feature & usercreation.feature and I want to execute one after other
I have tried the below in my config file
specs: ['..features/customerconf.feature','..features/usercreation.feature'],

Please help

I have tried this but
image.png
But non of tags executed got following reponse
image.png
James Scharett
@jscharett
anyone know how to use resolveJsonModule : true with protractor e2e tests?
KiT
@KiT-Maverik

Hey guys!
In Chrome 76 they disabled 'disable-infobars' flag.
I found and replacement for this,

https://cloud.google.com/docs/chrome-enterprise/policies/?policy=CommandLineFlagSecurityWarningsEnabled

...but can't get how can I pass this in chrome args. Can anybody advise?

Yehuda Miller
@pittgoose
@KiT-Maverik looks like your answer is already on stack overflow. https://stackoverflow.com/a/57304986/2907654
Jon Wallsten
@JonWallsten
Hi! Is it possible to use different args for each instance of Chrome when running with shardTestFiles: true? I need to set the debug port to a specific value for each instance so I can access DevTools protocol during our tests.
Jon Wallsten
@JonWallsten
Has anyone ever had issues with shardTestFiles: true causing "No specs found" error? It only happens in our CI where we run Jenkins on RedHat machines. Locally on Windows it has never happened.
Jon Wallsten
@JonWallsten
Is it possible to enable more debug-info to see why I can't find any specs?
jedwantstocode
@jedwantstocode
has anyone encountered this on jenkins when trying to run protractor tests?
[06:19:21] I/launcher - Running 1 instances of WebDriver
[06:19:21] I/local - Starting selenium standalone server...
[06:19:22] I/local - Selenium standalone server started at http://1XX.30.31.XXX:XXXXX/wd/hub
[06:19:23] E/launcher - unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn't exist)
I've already tried so many fixes from net and my capabilities look like this now
 capabilities: {
        browserName: 'chrome',
        // directConnect: true,
        shardTestFiles: true,
        maxInstances: 2,
        chromeOptions: {
            "binary": "/var/jenkins/tools/chromedriver/chromedriver",
            // "binary": "./node_modules/webdriver-manager",
            args: ['--no-sandbox',
                '--headless',
                '--disable-browser-side-navigation',
                'window-size=1920,1080',
                // 'start-maximized',
                '--enable-automation',
                '--disable-infobars',
                '--disable-extensions',
                '--disable-gpu',
                '--disable-dev-shm-usage',
                'verbose',
                'log-path=/tmp/chromedriver.log'
            ]
        }
    }
chan18
@chan18

Error:- E/launcher - unknown command: Cannot call non W3C standard command while in W3C mode

below is my config.

exports.config = {
  // Capabilities to be passed to the webdriver instance.
capabilities: {
    'browserName': 'chrome',
    'goog:chromeOptions': {
          w3c: false
    }
} ,

seleniumSessionId: '660580a980285fa3397b2bf25b37d0ab',

  // Framework to use. Jasmine is recommended.
  framework: 'jasmine',

  seleniumAddress: 'http://localhost:4444/wd/hub',
  //seleniumSessionId: '492fa3ff560304e39706e7333869cca7' , 
  directConnect: false,

  specs: ['todo-spec.js'],

  // Options to be passed to Jasmine.
  jasmineNodeOpts: {
    defaultTimeoutInterval: 10000000
  },

};

i just trying to use session id. But I am getting this error.

[13:07:53] I/launcher - Running 1 instances of WebDriver
[13:07:53] I/attachSession - Using the selenium server at http://localhost:4444/wd/hub
[13:07:53] I/attachSession - Using session id - 660580a980285fa3397b2bf25b37d0ab
[13:07:53] E/launcher - unknown command: Cannot call non W3C standard command while in W3C mode
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'PCNAME', ip: '**.***.***.***', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3'
, java.version: '1.8.0_191'
Driver info: driver.version: unknown
[13:07:53] E/launcher - UnsupportedOperationError: unknown command: Cannot call non W3C standard command while in W3C mo
de
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:25:53'
System info: host: 'PCNAME', ip: '**.***.***.***', os.name: 'Windows 8.1', os.arch: 'amd64', os.version: '6.3'
, java.version: '1.8.0_191'
Driver info: driver.version: unknown
    at Object.checkLegacyResponse (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-we
bdriver\lib\error.js:546:15)
    at parseHttpResponse (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdriver\l
ib\http.js:509:13)
    at doSend.then.response (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webdrive
r\lib\http.js:441:30)
    at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.attachToSession()
    at Function.attachToSession (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\selenium-webd
river\lib\webdriver.js:695:24)
    at AttachSession.getNewDriver (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\built\driverProviders\at
tachSession.js:37:58)
    at Runner.createBrowser (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\built\runner.js:195:43)
    at q.then.then (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\built\runner.js:339:29)
    at _fulfilled (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:834:54)
    at C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:863:30
    at Promise.promise.promiseDispatch (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js
:796:13)
    at C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:556:49
    at runSingle (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:137:13)
    at flush (C:\Users\ksadmin\AppData\Roaming\npm\node_modules\protractor\node_modules\q\q.js:125:13)
[13:07:53] E/launcher - Process exited with error code 199
saikrish06
@saikrish06
Hi All. I'm using the below code to check the Column headers in a web table and then perform actions if the header exists.
*/
this.enterCellValueBasedOnColumnName = function (columnName, textValue) {
return this.getColumnHeaders().then(function (val) {
console.log('All Column Headers: ' + val);
var ColumnNameIndex = val.indexOf(columnName);
return element.all(by.xpath('(.//table[contains(@class,"htCore")])[1]/tbody/tr/td')).count().then(function (totalCells) {
console.log('totalCells in the row are:' + totalCells);
for (var i = 1; i <= totalCells; i++) {
console.log("val[ColumnNameIndex] is" + val[ColumnNameIndex]);
if ((val[ColumnNameIndex].includes(columnName)) && (ColumnNameIndex < 15) && (val[ColumnNameIndex] !== 'Tax TransactionNum') && (val[ColumnNameIndex] !== 'Tax Filing Date')) {
var index = ColumnNameIndex + 1;
browser.actions().mouseMove(element(by.xpath('(.//table[contains(@class,"htCore")])[1]/tbody/tr[' + i + ']/td[' + index + ']'))).doubleClick().perform();
basePage.waitUntilElementVisible(yearSearchInputField, 3000);
basePage.enterTextWithActions(yearSearchInputField, textValue);
basePage.waitAWhile(3000);
browser.actions().mouseMove(firstDropdownValue).click().perform();
break;
}
is there any other function other than includes which I can use here?
Shubhojit Bhattacharjee
@ShubhojitBhattacharjee

Hi,
I am in a decision-making situation to either use Protractor or Selenium to create test automation framework for two apps, one is Angular-based, another is Vue JS based.

Advantages of using Protractor:
Comes bundles with Aungular app, no need to add exrta dependency
Supports more element locating mechanisms by providing methods like filter() and cssContainingText()
Supports scripting languages like Typescript and JavaScript

Main reason for using Protractor was because prtractor had its own locator types (like ng-model, etc) in order to handle elements in ealier version of Angular apps. However after Angular 2, those locators types have become irrelevant and now protractor uses locators just like in Selenium

I also have expert level knowledge in Selenium and Java

What should be my parameters to select either Protractor or Selenium to create a test automation framework and automate integration test cases? Is execution faster in Protractor because it uses scripting language?

Raul Molina
@raulmolinah.madrid_gitlab
Buenas, me gustaría saber como puedo automatizar con protractor el interactuar con el mapa por medio del click por coordenadas. Los elementos del mapa no tienen id vienen incrustados por mapBox y estoy intentando localizar los elementos del mapa por coordendas pero no son las correctas y me salta un mensaje de error diciendo que estoy fuera del mapa a la hora de hacer, click. Necesito ayuda ya que me estoy volviendo loco. Gracias compañeros !!!
Logesh Kumar
@logeshk
Hi guys
facing one issue
need your help
Logesh Kumar
@logeshk
doing a POC for a web app which is mix of non angular and angular pages, Example Login Page is a non angular, after login its angular page , here just normal search in input, check box is failing
with no such element same code I tried with only angularjs based app
works fine
fires1989
@fires1989
waitforangularenabled() true or false
if its not angular give false else if its angular give true
Logesh Kumar
@logeshk
Tried with these 2 options as well
browser.waitForAngularEnabled(true);
browser.ignoreSynchronization = false;
fires1989
@fires1989
use md-checkbox for locating checkboxes
Logesh Kumar
@logeshk
ok