Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 15:42

    christian-bromann on master

    v5.16.14 (compare)

  • 15:42

    christian-bromann on v5.16.14

    (compare)

  • 15:38

    christian-bromann on cb-standalone-sync

    (compare)

  • 15:38

    christian-bromann on master

    Run synchronous commands with s… (compare)

  • 15:38
    christian-bromann closed #4860
  • 15:38
    christian-bromann labeled #4860
  • 14:07
    elghailani commented #2250
  • 13:49
    codecov[bot] commented #4860
  • 13:49
    codecov[bot] commented #4860
  • 13:48
    codecov[bot] commented #4860
  • 13:47
    codecov[bot] commented #4860
  • 13:47
    codecov[bot] commented #4860
  • 13:31
    christian-bromann review_requested #4860
  • 13:31
    christian-bromann opened #4860
  • 13:29

    christian-bromann on cb-standalone-sync

    allow to run in sync commands i… add some docs (compare)

  • 12:43
    christian-bromann commented #4849
  • 12:42

    christian-bromann on v5.16.13

    (compare)

  • 12:42

    christian-bromann on master

    v5.16.13 (compare)

  • 12:38

    christian-bromann on cb-standalone-sync

    allow to run in sync commands i… (compare)

  • 12:37

    christian-bromann on cb-fix-async-runner

    (compare)

Chris Kelsey
@ckelsey
Hi, does anyone know if there's a hook or method that has how many it()'s there are ?
vdrulerz
@vdrulerz

Is there any way that I can include page response time in the result with webdriverIO

For eg- if I am automating 5 pages then in the results I can see that a respective page was loaded fully in 2 or 3 seconds ??

Any plugin to hook up with webdriverIO which supports any such integration ???

Rohit Bandu Pardeshi
@Rohitpardeshi8294
Hello guys,
Can anyone please let me know, How to get browser's driver instance in webdriverio?
Siarhei Hauruseu
@sgauruseu
image.png
Hi, all
this simple example is passed with webdriverio": "5.15.1"
but exception occurs with webdriverio": "5.16.12"
ypeError: fn(...).apply is not a function
at Element.elementErrorHandlerCallback (node_modules\webdriverio\build\middlewares.js:40:8)
TypeError: Cannot read property 'options' of undefined
node_modules\@wdio\utils\build\shim.js:60:46
What is the problem?
@mgrybyk could you help me please ? :-)
method "await elem.waitForEnabled(1000);" throws exception
Siarhei Hauruseu
@sgauruseu
Clearly for me now - I have seen the bug - webdriverio/issues/4849
Mykola Grybyk
@mgrybyk
@sgauruseu this is a regression
You may downgrade temporary to 5.16.11
Siarhei Hauruseu
@sgauruseu
@mgrybyk thanks!
Mykola Grybyk
@mgrybyk
We'll try to fix it today and release
@Rohitpardeshi8294 what do you mean? You have global browser object
@ckelsey refer to mocha docs. You can get it block in runtime
@vdrulerz maybe just measure how much browser.url take time?
David Nguyen
@davidnguyen179
Hi guys, are there any ways to set the viewport of the v5?
I searched and only found setWindowSize()
Siarhei Hauruseu
@sgauruseu
image.png
@davidnguyen179 you can do it in options as well
Pascal König
@pascal.koenig_gitlab
hi all,
can someone give me a hint which codeline is responsible for following console logs:
[0-0] RUNNING in chrome - /test/specs/example.ts
[0-0] PASSED in chrome - /test/specs/example.ts
vdrulerz
@vdrulerz

@mgrybyk But what if you click on a particular element and it also loads something that response time also I will need to capture as part of my reporting

Basically a combination of UI performance + functional

cosmic-orange
@cosmic-orange

Hi all
I've got a problem with connecting devtools to chrome
I'm running WDIO sync in a container. Chrome is being run in an other container. Here's my docker-sompose.yml:

version: '2'
services:
  hub:
    image: selenium/standalone-chrome-debug
    networks:
      e2e_tests_network:
        ipv4_address: 172.72.0.2
    ports:
      - "4444:4444"
      - "5900:5900"
      - "9222:9222"
    environment:
      - SCREEN_WIDTH=1920
      - SCREEN_HEIGHT=1080
    volumes:
      - /dev/shm:/dev/shm
      - ./:/opt/qa
  e2e-tests:
    build:
      context: .
      dockerfile: Dockerfile
    image: e2e-tests:latest
    depends_on:
      - hub
    networks:
      e2e_tests_network:
        ipv4_address: 172.72.0.3
    links:
      - hub
    volumes:
      - ./:/opt/qa

networks:
  e2e_tests_network:
    driver: bridge
    ipam:
      driver: default
      config:
        - subnet: 172.72.0.0/24
          gateway: 172.72.0.1

Here's everything what's related to devtools service.
packege.json:

{
...
  "dependencies": {
    "@wdio/devtools-service": "^5.16.10",
  }
}

wdio.conf:

services: [
    ['devtools', {
        debuggerAddress: '172.72.0.2:9222',
    }],
],

The error I get upon launching the tests:

[0-0] (node:86) UnhandledPromiseRejectionWarning: Error: connect ECONNREFUSED 172.72.0.2:9222
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
How do I solve this? Running tests on the host machine locally, without containers works just fine without specifying debuggerAddress. However, when run in docker container - it causes that error above.
Mykola Grybyk
@mgrybyk
@vdrulerz maybe you need then wdio devtools service?
vdrulerz
@vdrulerz
@mgrybyk Do you know any example which I can implement ?
ArturSuchowierski
@ArturSuchowierski

Hey guys how do You go further in the scope of one of the elements picked from list:

Like I've got a list of packages:
let packages = browser.findElements("tag name", "selector1);
And I'm interested in packages[0] element that I would go further with to look for all it childs
Was trying with:
packages[0]. $ $ ("selector2")
but seems like this $$ works only with selectors instead of an objects

Mykola Grybyk
@mgrybyk
If you are on v5 use $ or $$ instead
ArturSuchowierski
@ArturSuchowierski
For getting packages? @mgrybyk
Mykola Grybyk
@mgrybyk
For getting elements array
And in all the other cases if possible
Jeremy Schneider
@YmerejRedienhcs
@ronhorm regarding takeScreenshot(), it seems that that's part of the w3c webdriver api. And as @erwinheitzman says, [findElement] "... is part of the webdriver api which is out of our control as it's a protocol which is also called the w3c standard", I'm guessing that we wouldn't want to normally call that API (except, perhaps, as specifically directed when using Allure). Or, I guess, conceivably, when the Allure service is configured, it adds that command to make it available when creating the report.
Erwin Heitzman
@erwinheitzman
@YmerejRedienhcs I honestly believe you should never ever use findElementwhen using webdriverio. I have been using webdriverio for about 4 years now and have never needed it. Use $ or $$ and all should be good and if you are having some issues or challenges, just ask here and people will try to help
Jeremy Schneider
@YmerejRedienhcs
@erwinheitzman Yes, that's cool. I was just saying to @ronhorm that similarly to the way we shouldn't use findElement (as you said), we would not want to use normally use the w3c webdriver API takeScreensot, but, rather, use the webdriverio API saveScreenshot. But in the particular case of the Allure setup, it specifically says, at https://webdriver.io/docs/allure-reporter.html#add-screenshots, "Screenshots can be attached to the report by using the takeScreenshot function from WebDriverIO in afterStep hook.
Erwin Heitzman
@erwinheitzman
@YmerejRedienhcs ahh got ya, I misunderstood you in that case. I agree with you yes :)
ronhorm
@ronhorm
@YmerejRedienhcs @erwinheitzman yea I found saveScreenShot in the v5 api docs so am using that. I've been using webdriverio for about a year now and I agree $ and $$ are all you need. I have yet to have to use the w3c webdriver API
@erwinheitzman @YmerejRedienhcs thanks so much for all of your help :)
Erwin Heitzman
@erwinheitzman
you are welcome @ronhorm :)
goatsy
@goatsy

We experience a very strange error.

We use mocha as a testrunner. Since today we have the following error:

TypeError: this.retries is not a function

this.retries(1);

"webdriverio": "^5.16.10",

Erwin Heitzman
@erwinheitzman
@goatsy what version is currently installed?
goatsy
@goatsy
Erwin Heitzman
@erwinheitzman
@goatsy and did you upgrade today? if so, from what version?
Duc Le
@ducle91
quick question, for the browserstack service, would it possible that it only grabs the describe block, instead of the describe and the it-block when it generate a new session?
goatsy
@goatsy
@erwinheitzman Yes I think so! It must have upgraded from probably 5.16.10
Christian Bromann
@christian-bromann
Hey @/all … if you are interested in workshop at SeleniumConf, please upvote: https://confengine.com/selenium-conf-2020/proposal/13778/the-nuts-and-bolts-of-webdriverio
Duc Le
@ducle91
image.png