Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 13 05:49
    BeBestOf commented #8682
  • Aug 12 23:39
    mauriceKA commented #8279
  • Aug 12 14:44
    erwinheitzman commented #8672
  • Aug 12 14:42
    erwinheitzman commented #8672
  • Aug 12 14:40
    erwinheitzman commented #8672
  • Aug 12 14:40
    erwinheitzman commented #8672
  • Aug 12 14:40
    erwinheitzman commented #8672
  • Aug 12 14:39
    erwinheitzman commented #8672
  • Aug 12 14:19
    christian-bromann commented #8672
  • Aug 12 13:56
    erwinheitzman commented #8672
  • Aug 12 13:56
    erwinheitzman commented #8672
  • Aug 12 13:54
    erwinheitzman commented #8672
  • Aug 12 11:58

    christian-bromann on cb-expect-webdriverio-update

    (compare)

  • Aug 12 11:58

    christian-bromann on main

    update expect-webdriverio and i… (compare)

  • Aug 12 11:58
    christian-bromann closed #8698
  • Aug 12 11:57
    christian-bromann synchronize #8698
  • Aug 12 11:57

    christian-bromann on cb-expect-webdriverio-update

    remove matcher typing remove matcher typing (compare)

  • Aug 12 11:33
    christian-bromann commented #8672
  • Aug 12 11:31
    christian-bromann synchronize #8698
  • Aug 12 11:31

    christian-bromann on cb-expect-webdriverio-update

    overwrite expect when run jasmi… (compare)

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
all request in that process
nonamecze
@nonamecze:matrix.org
[m]
thanks
nonamecze
@nonamecze:matrix.org
[m]
One more question please, lets say that i have this test:
and now i want to give it some sort of maximum time to complete it. Something like this: -> If this test will finish in less than a 2 seconds, it is ok. Else, if it will take longer than that, throw some error exception
is there any way to do this?
Thanks to all for any help.
Christian Bromann
@christian-bromann
just measure the time using Date.now()