Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:29
    Ankit098 commented #8374
  • 12:19
    Ankit098 synchronize #8374
  • 11:19

    christian-bromann on v8

    adjust package.json of mocha fr… (compare)

  • 09:24
    christian-bromann closed #8301
  • 09:24
    christian-bromann commented #8301
  • 09:21
    christian-bromann closed #8302
  • 09:21
    christian-bromann commented #8302
  • 09:10

    christian-bromann on v8

    make Node.js v16 a requirement transform @wdio/protocols into … transform @wdio/logger into ESM and 41 more (compare)

  • 09:00

    christian-bromann on v8

    enable mocha tests (compare)

  • 08:56

    christian-bromann on v8

    rewrite @wdio/mocha-framework t… (compare)

  • 08:36

    christian-bromann on v8

    rewrite @wdio/devtools-service … eslint fixes (compare)

  • May 24 20:41
    christian-bromann commented #8361
  • May 24 19:43
    yon-cuadrado commented #8361
  • May 24 15:45
    gitpod-io[bot] edited #8374
  • May 24 15:45
    Ankit098 opened #8374
  • May 24 12:10

    christian-bromann on v8

    make Node.js v16 a requirement transform @wdio/protocols into … transform @wdio/logger into ESM and 36 more (compare)

  • May 24 11:34

    christian-bromann on v8

    some fixes (compare)

  • May 24 10:50
    RyanGosden commented #8356
  • May 24 08:55

    christian-bromann on main

    another tweak (compare)

  • May 24 08:48

    christian-bromann on main

    update deps (compare)

Federico Francia
@federicoitaly:matrix.org
[m]
@erwinheitzman: thanks, now I have these: "@babel/cli": "^7.12.8",
"@babel/preset-env": "^7.13.15",
"@cucumber/cucumber": "^7.1.0",
"@slack/web-api": "^6.1.0",
"@wdio/appium-service": "^7.3.1",
"@wdio/browserstack-service": "^7.3.1",
"@wdio/cli": "^7.3.1",
"@wdio/config": "^7.3.1",
"@wdio/cucumber-framework": "^7.3.1",
"@wdio/local-runner": "^7.3.1",
"@wdio/sauce-service": "^7.3.1",
"@wdio/spec-reporter": "^7.3.1",
"@wdio/sync": "^7.3.1",
Erwin Heitzman
@erwinheitzman
@federicoitaly:matrix.org @wdio/cucumber-framework was updated to v7.5.1
Federico Francia
@federicoitaly:matrix.org
[m]
ok
i get two warnings: npm i --legacy-peer-deps
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
Federico Francia
@federicoitaly:matrix.org
[m]
locally it works, from Jenkins I get: + npm i --legacy-peer-deps
npm ERR! code ETARGET
npm ERR! notarget No matching version found for webdriverio@7.5.1.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.
Erwin Heitzman
@erwinheitzman
No matching version found for webdriverio@7.5.1. I refer to my previous answer
Federico Francia
@federicoitaly:matrix.org
[m]
yes, locally it works, from jenkins it fails
"dependencies": {
"@babel/cli": "^7.12.8",
"@babel/preset-env": "^7.13.15",
"@cucumber/cucumber": "^7.1.0",
"@slack/web-api": "^6.1.0",
"@wdio/appium-service": "^7.3.1",
"@wdio/browserstack-service": "^7.3.1",
"@wdio/cli": "^7.3.1",
"@wdio/config": "^7.3.1",
"@wdio/cucumber-framework": "^7.5.1",
"@wdio/local-runner": "^7.3.1",
"@wdio/sauce-service": "^7.3.1",
"@wdio/spec-reporter": "^7.3.1",
"@wdio/sync": "^7.3.1",
"colornames": "^1.1.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-wdio": "^7.0.0",
"express": "^4.17.1",
"fs-extra": "^9.1.0",
"gherkin": "^5.1.0",
"jsonwebtoken": "^8.5.1",
"multiple-cucumber-html-reporter": "^1.18.0",
"rimraf": "^3.0.2",
"shelljs": "^0.8.4",
"sync-fetch": "^0.3.0",
"wdio-cucumberjs-json-reporter": "^2.0.2",
"webdriverio": "^7.3.1",
"yargs": "^16.1.1"
},
Christian Bromann
@christian-bromann
@federicoitaly:matrix.org you might want to clean up your package-lock.json
Federico Francia
@federicoitaly:matrix.org
[m]
yes I did it locally, and it works
from jenkins i get the error, strange
Christian Bromann
@christian-bromann
you need to check in your updated package-lock
your jenkins probably still pulls the old version
Federico Francia
@federicoitaly:matrix.org
[m]
it is in gitignore
Christian Bromann
@christian-bromann
maybe you can find in the logs which version is downloaded
Erwin Heitzman
@erwinheitzman
you shouldn't ignore your package-lock.json
it should be committed
Federico Francia
@federicoitaly:matrix.org
[m]
@erwinheitzman: ok, thanks
is it a new best practice from npm v7?
Daniel Klotz
@d-klotz

Hi Guys,

I'm trying to use spectrum (uses webdriver.io) and I'm not being able to click on a checkbox
I'm doing:

const checkbox = await app.client.findElement('css selector', '.checkbox');
app.client.elementClick(checkbox);

But someone this findElement returns a json like {
'element-6066-11e4-a52e-4f735466cecf': 'd9ee3334-ef66-4ae7-a308-d249b1a95f24'
}
Which is not accepted by the click method, do you know why?

Erwin Heitzman
@erwinheitzman
it's the whole idea behind the package-lock.json file, ever since it got introduced years ago @federicoitaly:matrix.org
@d-klotz you might have to click the label that is assigned to the checkbox as it depends on what element is listening for the click event
4 replies
not sure about the return value
Federico Francia
@federicoitaly:matrix.org
[m]
@erwinheitzman: I thought package-lock.json has to be gitignored since it will be created by npm install, I mean from Jenkins CI/CD
Erwin Heitzman
@erwinheitzman
nope
read the documentation I shared @federicoitaly:matrix.org
Daniël Verburgh
@danielkroon
Hi all! Can anyone tell me how the https://webdriver.io/docs/api/browser/throttle/ works? When I add the command in my it block. It looks like it only slows down the speed for the command below the browser.throttle command, but not for the rest of the commands in that same it block. I expect to slow the whole it block down. Not just 1 single line.
Christian Bromann
@christian-bromann
throttle slows down browser requests not your webdriver ones
Daniël Verburgh
@danielkroon
okay but every command is a requests right?
Christian Bromann
@christian-bromann
yes a webdriver request
Daniël Verburgh
@danielkroon
ahh I see
Christian Bromann
@christian-bromann
with throttle you change the network capabilities of the browser
Daniël Verburgh
@danielkroon
Then I misunderstood the command. Sorry, my bad. Any alternative? Expect adding pause between every line.
Christian Bromann
@christian-bromann
or use the afterCommand hook to call the pause command
Daniël Verburgh
@danielkroon
fair enough, I will do that then. Thank you :)
Federico Francia
@federicoitaly:matrix.org
[m]
Hi, ERROR webdriver: Request failed with status 200 due to Error: Too many capabilities added in the test. For successful execution, please remove the capabilities which are not required/necessary.
can you please let me know what is the max number of capabilities?
Christian Bromann
@christian-bromann
@federicoitaly:matrix.org that depends on your selenium grid or wherever you run your remote browser
Federico Francia
@federicoitaly:matrix.org
[m]
ok thanks @christian-bromann
WARN webdriver: Request encountered a stale element - terminating request
ale element reference: The previously found element "Application '.....'" is not present in the current view anymore. Make sure the application UI has the expected state. Original error: Error kAXErrorIllegalArgument getting snapshot for element <AXUIElementRef 0x101e67890> {pid=966} {uid=[ID:1 hash:0x0]}
is there a way to avoid this ^ ?
HaPe63
@HaPe63
Hi all, I try in my test to download pdf without prompt. thats my firefox capabilities:
image.png
I have already searched but havent found anything that helped.
I use wdio version 6
Can anybody explain me, what I do wrong?
When I click at the download btn, always the dialog appears.
downloadDir ist defined in the top of wdio config.