Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:06
    Ankit098 commented #8891
  • 08:27
    MapTo0 commented #8917
  • 08:26
    MapTo0 commented #8917
  • 08:25
    MapTo0 commented #8917
  • 08:21
    MapTo0 commented #8917
  • Sep 26 18:45
    christian-bromann labeled #8921
  • Sep 26 18:45
    christian-bromann labeled #8921
  • Sep 26 18:45
    christian-bromann opened #8921
  • Sep 26 18:02
    slavamarkovski commented #5505
  • Sep 26 17:34
    sashashura opened #8920
  • Sep 26 17:05
    dependabot[bot] edited #8919
  • Sep 26 16:55
    dependabot[bot] synchronize #8919
  • Sep 26 16:55

    dependabot[bot] on npm_and_yarn

    Bump @types/node from 18.7.18 t… (compare)

  • Sep 26 16:55
    dependabot[bot] edited #8919
  • Sep 26 16:55
    dependabot[bot] edited #8919
  • Sep 26 16:48
    dependabot[bot] edited #8919
  • Sep 26 16:48
    christian-bromann commented #8919
  • Sep 26 16:09

    dependabot[bot] on npm_and_yarn

    Bump @types/node from 18.7.18 t… (compare)

  • Sep 26 16:09
    dependabot[bot] labeled #8919
  • Sep 26 16:09
    dependabot[bot] labeled #8919
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
too many
HaPe63
@HaPe63
Do you know which ones are not necessary and which are necessary?
dmarimoutou
@dmarimoutou
Hi there,
I'd like to share data between my Cucumber step definitions.
It seems that we can set this.mySharedData = myvalue in a step and use directly this.mySharedData in another step definition.
Is it better to use this approach or is it better to use this service https://www.npmjs.com/package/@wdio/shared-store-service ?
Federico Francia
@federicoitaly:matrix.org
[m]
@dmarimoutou: good question, I also would need the answer
Erwin Heitzman
@erwinheitzman
@dmarimoutou I'd say that the cucumber method is probably preferable because the store is meant to be used for sharing even between scenario's if I'm not mistaken. We don't recommend this as it is a bad practice to share data so only use it when you really need to
@federicoitaly:matrix.org ping for the answer, just so you don't miss it
dmarimoutou
@dmarimoutou
Thanks for your answer @ErwinBeen. So I'll use the Cucumber approach (this.mySharedData = myvalue). Here is the link to the doc: https://cucumber.io/docs/cucumber/state/
Federico Francia
@federicoitaly:matrix.org
[m]
@dmarimoutou: thanks, let us know if that approach works fine
Matthew Cruz
@mattcruzz
Hello, I was just wondering if anyone has a good resource for GitLab CI/CD integration of webdriverio tests and can share it with me
dmarimoutou
@dmarimoutou
@federicoitaly:matrix.org this approach works fine, my data are well shared between my step definitions.
The only problem I have is this Typescript error: Object is possibly 'undefined'.ts(2532) when I declare my shared object this.mySharedData = myvalue and when I use it. Ex: if(this.mySharedData === expectedValue). I'm trying to find a way to fix this issue...
My typescript version is 4.1.5
chanchow88
@chanchow88
I am running my automation tests with 9 instances inside chrome capability and I am using mocha. Till last month every thing went well. Now I seeing lot of tests are failing in before hook with login element not found. My tests are running on gridlastic and I have no clue or no screenshot captured since it is failing at before hooks. Is there any known issue happening with new version of chrome? Locally I saw this issue only once where the browser is launched but no interaction is happening between webdriverio and chrome. No Url is passed to the browser and test failed leaving the browser behind.
Krishna Kumar Singh
@kwishna
I want to generate "rerun.txt" file in my Webdriverio-Cucumber code. I tried providing "rerun:rerun.txt" in "format" 'cucumberOpts' inside wdio.conf.js. But, No luck. I even passed "--cucumberOpts.format='rerun:rerun.txt'" through commandline. I couldn't generate rerun.txt File on failure. Please suggest what should i do?
Alex Kentwell
@Alkex1

Hey,
I just updated my Mobile testing repo from WDIO v5 to WDIO v7
I'm trying to run a test on WDIO v7 /appium on an iOS simulator, and getting the error:
'[debug] [HTTP] No route found for /session [HTTP] <-- POST /session 404'
Wondering if anyone has had similar issues while trying to run tests on WDIO v7?

I have found similar error's saying:
No route found. Setting content type to 'text/plain'
But unfortunately the tips given in those instances don't appear to be helping/solving my problem.

Viral Panchal
@viralkpanchal
Hi All,
Is there any workaround to open deep-link on the real iOS device? I am using appium service 5.23.0, WebdriverIO version 5.23.0, and real devices are on BrowserStack. Appreciate if someone can please share code example..
Erwin Heitzman
@erwinheitzman
@kwishna update @wdio/cucumber-framework, this was fixed yesterday
nonamecze
@nonamecze:matrix.org
[m]
Hi, can i somehow measure time for each request? For example i would like to measure how long will it take to do this in miliseconds
5 replies