Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:21
    razan45 commented #7992
  • 00:19
    linux-foundation-easycla[bot] commented #8481
  • 00:16
    gitpod-io[bot] edited #8481
  • 00:16
    linux-foundation-easycla[bot] commented #8481
  • 00:16
    razan45 opened #8481
  • Jun 27 14:38
    kajmagnus commented #4913
  • Jun 27 14:38
    kajmagnus commented #4913
  • Jun 27 12:39
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:37
    christian-bromann synchronize #8432
  • Jun 27 12:33
    hammzj commented #8432
  • Jun 27 12:32
    hammzj synchronize #8432
  • Jun 27 12:06

    dependabot[bot] on npm_and_yarn

    (compare)

  • Jun 27 12:06
    dependabot[bot] commented #8471
  • Jun 27 12:06
    christian-bromann closed #8471
  • Jun 27 12:06

    christian-bromann on npm_and_yarn

    (compare)

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.
image.png
HaPe63
@HaPe63
image.png
That the download dialog which always appears and I can see at the radio btn, the capabilities has no impact to the browser settings. What do I wrong?
Federico Francia
@federicoitaly:matrix.org
[m]
maybe you are using too much capabilities, try to remove some of them