Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:53
    codecov[bot] commented #4720
  • 00:53
    codecov[bot] commented #4720
  • 00:52
    codecov[bot] commented #4720
  • 00:52
    codecov[bot] commented #4720
  • 00:50
    codecov[bot] commented #4720
  • 00:50
    codecov[bot] commented #4720
  • 00:30
    codecov[bot] commented #4542
  • 00:30
    christian-bromann synchronize #4542
  • 00:30

    christian-bromann on cb-drop-node-8

    fix unit test (compare)

  • 00:26
    codecov[bot] commented #4720
  • 00:26
    christian-bromann synchronize #4720
  • 00:26

    christian-bromann on cb-get-rid-of-WebdriverIOAsync

    get rid of WebdriverIOAsync int… (compare)

  • 00:24
    christian-bromann synchronize #4740
  • 00:24

    christian-bromann on cb-update-typescript

    fix types (compare)

  • 00:07
    christian-bromann review_requested #4720
  • 00:06
    mgrybyk opened #4720
  • 00:06

    christian-bromann on cb-get-rid-of-WebdriverIOAsync

    get rid of WebdriverIOAsync int… (compare)

  • 00:03
    christian-bromann review_requested #4740
  • 00:02
    christian-bromann synchronize #4740
  • 00:02

    christian-bromann on cb-update-typescript

    update typescript to v3.7.3 (compare)

LearningandWorking
@learningandworking
Hi all, Anyone understand the sentence below in Custom command doc, would you possibly share your thoughts in it
Additionally, you can extend the element instance with your own set of commands, by passing true as the final argument.
Raju
@spnraju
Hello guys! Thank you for webdriverio. We are trying to run our tests on enterprise grid and we have an issue with proxy. The nodes in the grid are not configured with any proxy because of which our test app is not loaded there. The grid team says we should pass the proxy from our code rather than having it configured it on the node itself. We have tried few things like passing it through config file and all but nothing worked. Any help on how can this be solved will be highly appreciated. Thank you!
Erwin Heitzman
@erwinheitzman
@learningandworking yes I understand it though what is your question?
Clement06
@Clement06

Hi All, thanks for your support. I have done the setup for webdriverio with node js , cucumber framework. I m getting the below error, please help me to resolve this :clement antony dass@clement MINGW64 /g/WebdriverIO
$ ./node_modules/.bin/wdio wdio.conf.js

Execution of 1 spec files started at 2019-12-01T17:24:26.074Z

Starting ChromeDriver 78.0.3904.70 (edb9c9f3de0247fd912a77b7f6cae7447f6d3ad5-refs/branch-heads/3904@{#800}) on port 4444
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[0-0] RUNNING in chrome - G:\WebdriverIO\features\Login.feature

DevTools listening on ws://127.0.0.1:59337/devtools/browser/7cda9521-0b24-4791-b5be-4a2db082f0b5
[0-0] Error in "Performing a Login: Login with a default user: Given I'm on the login page"
Step "Given I'm on the login page" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[0-0] Error in "Performing a Login: Login with a default user: When I log in with a default user"
Step "When I log in with a default user" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[0-0] Error in "Performing a Login: Login with a default user: When I shall be on the Flight Finder page"
Step "When I shall be on the Flight Finder page" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[0-0] FAILED in chrome - G:\WebdriverIO\features\Login.feature

"spec" Reporter:

[chrome windows nt #0-0] Spec: G:\WebdriverIO\features\Login.feature
[chrome windows nt #0-0] Running: chrome on windows nt
[chrome windows nt #0-0]
[chrome windows nt #0-0] Performing a Login
[chrome windows nt #0-0] Login with a default user
[chrome windows nt #0-0] ✖ Given I'm on the login page
[chrome windows nt #0-0] ✖ When I log in with a default user
[chrome windows nt #0-0] ✖ When I shall be on the Flight Finder page
[chrome windows nt #0-0]
[chrome windows nt #0-0] 3 failing (192ms)
[chrome windows nt #0-0]
[chrome windows nt #0-0] 1) Login with a default user Given I'm on the login page
[chrome windows nt #0-0] Step "Given I'm on the login page" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[chrome windows nt #0-0] undefined:undefined
[chrome windows nt #0-0]
[chrome windows nt #0-0] 2) Login with a default user When I log in with a default user
[chrome windows nt #0-0] Step "When I log in with a default user" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[chrome windows nt #0-0] undefined:undefined
[chrome windows nt #0-0]
[chrome windows nt #0-0] 3) Login with a default user When I shall be on the Flight Finder page
[chrome windows nt #0-0] Step "When I shall be on the Flight Finder page" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[chrome windows nt #0-0] undefined:undefined

Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:08

clement antony dass@clement MINGW64 /g/WebdriverIO
$ ./node_modules/.bin/wdio wdio.conf.js

Execution of 1 spec files started at 2019-12-01T17:39:57.505Z

Starting ChromeDriver 78.0.3904.70 (edb9c9f3de0247fd912a77b7f6cae7447f6d3ad5-refs/branch-heads/3904@{#800}) on port 4444
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[0-0] RUNNING in chrome - G:\WebdriverIO\features\Login.feature

DevTools listening on ws://127.0.0.1:59391/devtools/browser/db7ce207-f2ed-4c84-912e-2797dcf1bc29
[0-0] Error in "Performing a Login: Login with a default user: Given I'm on the login page"
Step "Given I'm on the login page" is not defined. You can ignore this error by setting cucumberOpts.ignoreUndefinedDefinitions as true.
[0-0] Error in "Performing a Login: Login with a default u

Raju
@spnraju
@Clement06 do you have the path to step definitions set in cucumber options in config file? it looks like your runner is not able to find your step definitions. Also, please ensure your steps and step defintions match.
Clement06
@Clement06
thanks @spnraju Raju, let me check
vaibhav
@VaibhavBarmkar_twitter
Hi, is there any way to create a variable in before scenario hook and use it in steps ?
Annemarie
@AnnemarieD

goodmorning guys, it's me again ;-)
I am running into a browser mismatch issue that I can't get out of at the moment. Any suggestions are welcome.
I am running my tests in a pipeline on an Ubuntu server in AWS. I take the following steps to install Chromium:

      # Setup for Chrome
      - apt-get install -y software-properties-common
      - add-apt-repository -y ppa:canonical-chromium-builds/stage
      # Do it!
      - apt-get update -y
      - apt-get install -y chromium-browser

When the pipeline gets to the steps for starting the tests I get the following error:

[0-0] 2019-12-02T10:12:42.101Z ERROR webdriver: Request failed due to session not created: session not created: This version of ChromeDriver only supports Chrome version 78 
Build info: version: '3.141.5', revision: 'd54ebd709a', time: '2018-11-06T11:58:47' 
System info: host: '2678a8114eea', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.14.152-98.182.amzn1.x86_64', java.version: '11.0.2' 
Driver info: driver.version: unknown

So, I get from this that the chromedriver I am using is not supporting another version of chrome than version 78. According to the log in installing chromium I am installing chromium v78:

Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 chromium-codecs-ffmpeg-extra amd64 78.0.3904.108-0ubuntu0.18.04.1 [1078 kB] 
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 chromium-browser amd64 78.0.3904.108-0ubuntu0.18.04.1 [63.3 MB] 
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 chromium-browser-l10n all 78.0.3904.108-0ubuntu0.18.04.1 [3076 kB]

My browser capabilities for the tests in the pipeline is this:

    capabilities: [{
        'browserName': 'chrome',
        'goog:chromeOptions': {
            args: ['--headless', '--disable-gpu']
        },
        'maxInstances': 5
    }]
I am missing something here and obviously don't know what
Mykola Grybyk
@mgrybyk
Why don't you just use docker image with chrome and nodejs?
@VaibhavBarmkar_twitter yes, in global context
Tejasvi Manmatha
@tejasv02

@tejasv02 looks like you have not configured everything correctly, see https://webdriver.io/blog/2019/05/18/visual-regression-for-v5.html

@mgrybyk - https://github.com/tejasv02/webdriverIO-with-cucumberBDD/tree/image-comparision I have forked WDIO boiler plate and added my changes on a branch. is it possible to take a look at and suggest me what I could be doing wrong ?

Mykola Grybyk
@mgrybyk
@AnnemarieD also why are you instilling chromium instead of chrome?
Annemarie
@AnnemarieD
@mgrybyk I have set this up with a developer, I don't know exactly but we found this in a tutorial and it has worked before. I want to run the tests in headless chrome, so might not need a complete install of chrome for that but am not sure
Mykola Grybyk
@mgrybyk
To run chrome you need chrome.
Also, there are docker images with chrome, nodejs, java, etc
You may take a look how to install chrome properly on ubuntu, because you are doing things wrong
Slavko Kovljenic
@Sk27
yea, @AnnemarieD here is a gist for installing chrome, selenium and chromedriver on Ubuntu 16.04: https://gist.github.com/ziadoz/3e8ab7e944d02fe872c3454d17af31a5
Annemarie
@AnnemarieD
@mgrybyk @Sk27 thanks, I'll look into that. I do wonder why it worked before though...
CANNIBAL
@LORD_CANNIBAL_twitter
hey guys,
is there a way to prioritize test cases which to run and when? On a global scale, not inside 1 file.
My framework is growing day by day and sometimes I need a test case to run on specific order specified by me.
Thanks
alexanderlazarov
@alexanderlazarov
Hi all,
is there an option to set the Junit reporter to show all test execution logs? Currently I am able to see only the stack when a test has failed.
cosmic-orange
@cosmic-orange
Hi!
I need to extract JS errors from Chrome console. How can I access the console and its current content?
alexanderlazarov
@alexanderlazarov
@cosmic-orange browser.getLogs('browser') - it returns all logs as array -> [i].message will return the log for a specific entry in the logs
nicolasbouffard
@nicolasbouffard
Hi everyone, can someone point me in the right direction for taking screenshots on errors with Appium + Mocha ? I tried to do it in the afterTest hook but this fails most of the time because the Appium session has already been killed. I've seen an onError hook in the beta docs saying "good place to take a screenshot", but can't find anything similar in the stable release.
cosmic-orange
@cosmic-orange
@alexanderlazarov thanks a lot, that worked.
alexanderlazarov
@alexanderlazarov
Sure, no problem :) Hopefully someone will help me too
GURU KIRAN
@AutomationGuru

Guys i need to not have any output on console when running the specs, i use the logLevel: 'silent'
but i see this

[0-0] RUNNING in chrome - /tests/selenium/specs/1.spec.js
[0-0] PASSED in chrome - /tests/selenium/specs/1.spec.js

Is there a way not to see this and just the result summary ?

Mykola Grybyk
@mgrybyk
Not at this point @AutomationGuru
GURU KIRAN
@AutomationGuru
@mgrybyk thank you
Alex Ketch
@alex-ketch

Hi everyone :wave: I'm at my wits end after trying to get WebdriverIO Sauce Service working over the weekend and am hoping someone here could point me in the right direction please.

I can see that a session is created in Sauce Labs admin panel, however all tests fail with:

[0-0] 2019-12-02T15:21:08.723Z DEBUG webdriver: request failed due to missing body
[0-0] 2019-12-02T15:21:08.723Z WARN webdriver: Request failed due to 404 page not found

The logs of running the connection doctor are here -> https://dsh.re/932f6
where the problem seems to be with resolving the sauce labs address of *.miso.saucelabs.com. I've tried using other networks, as well as CI builds, where they all fail.

Thanks in advance for any help or advice

hasna95
@hasna95
Guys, Anyone know how to get network speed upon test failure in webdriverIO-cucumber?
I am facing network issue in browserstack. I wants to confirm that it is due to network.
Jeremy Schneider
@YmerejRedienhcs
@mgrybyk Thanks much for your answer back on Nov 22 about how chrome driver major version should match chrome browser version, and how it's mentioned on the chromedriver website (just got back from US Thanksgiving break).
Ben Williams
@Smashman
Hi, @christian-bromann, perhaps we should bring this to Gitter?
Regarding #4834
Christian Bromann
@christian-bromann
sure thing
Ben Williams
@Smashman
Great!
So the issue with isMultiremote is that we use numerous runners for a single spec file, is that correct, @christian-bromann?
However, https://github.com/webdriverio/webdriverio/blob/master/packages/wdio-runner/src/index.js#L129
appears to be adding the sessionId to caps if we are isMultiremote
Is this an error here?
Christian Bromann
@christian-bromann
@Smashman what do you want to achieve?
Ben Williams
@Smashman
I would like the spec reporter to show like your latest comment, however at the moment it is not doing so because sessionId is not in capabilities when not running multiremote
Christian Bromann
@christian-bromann
@Smashman we just released this version and it should show the session ID at least for jobs running on saucelabs
Ben Williams
@Smashman
I pulled and npm linked locally, but I will try with the full release. I am not using saucelabs, but I don't think that should make a difference in this.
Do you see what I am referring to in regards to the two links above? I really believe there is an error.
Christian Bromann
@christian-bromann
I know what you mean but for multiremote we don’t display the session ids the way how we do it in normal mode
Ben Williams
@Smashman
I am not asking for the session ID in multiremote. I am saying that in the runner we are not adding the session ID to the capabilities for normal mode
capabilities: isMultiremote ? browser.instances.reduce((caps, browserName) => { caps[browserName] = browser[browserName].capabilities caps[browserName].sessionId = browser[browserName].sessionId return caps }, {}) : browser.capabilities
Christian Bromann
@christian-bromann
feel free to propose a PR