Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 18 23:35
    monkpit closed #8734
  • Aug 18 23:35
    monkpit commented #8734
  • Aug 18 20:43
    christian-bromann unlabeled #8734
  • Aug 18 20:43
    christian-bromann labeled #8734
  • Aug 18 20:42
    erwinheitzman commented #7837
  • Aug 18 20:40
    erwinheitzman commented #8734
  • Aug 18 20:37
    erwinheitzman commented #8734
  • Aug 18 20:37
    erwinheitzman commented #8734
  • Aug 18 14:18
    monkpit edited #8734
  • Aug 18 14:18
    monkpit edited #8734
  • Aug 18 14:17
    monkpit labeled #8734
  • Aug 18 14:17
    monkpit labeled #8734
  • Aug 18 14:17
    monkpit opened #8734
  • Aug 18 10:28

    christian-bromann on main

    improve documentation (compare)

  • Aug 18 09:16

    christian-bromann on main

    fix runner:start reporting event (compare)

  • Aug 18 08:51
    christian-bromann labeled #8733
  • Aug 18 08:51
    christian-bromann labeled #8733
  • Aug 18 08:51
    christian-bromann unlabeled #8733
  • Aug 18 08:51
    christian-bromann commented #8733
  • Aug 18 08:47
    xbrys31 labeled #8733
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()
Erwin Heitzman
@erwinheitzman
changing the arrow function to a regular function should allow you to do the following if I am not mistaken
it('should set a timeout specifically for this test', function () {
  this.timeout = 2000 // 2 sec
})
Christian Bromann
@christian-bromann
ah this is even better
nonamecze
@nonamecze:matrix.org
[m]
thank you!
Christoph Herold
@coeamyd
Shouldn't this also work with the arrow function?
Erwin Heitzman
@erwinheitzman
no, arrow function's do not have a this scope
Christoph Herold
@coeamyd
thx
이순한(TQA)
@soonhanlee
Can I manually trigger the beforeCommand, afterCommand event myself?
If I took a screenshot with puppeteer, I would like to trigger a command event like takeScreenshot.
Yedidya Weiner
@flaplid-jabberdack
Trying to switch the driver to an iframe using swtichTo().frame('') and it spits back an error that 'id' cannot be a string. Ive also tried driver.switchToFrame(css-selector) and that it tells me switchToFrame is not a function. Any ideas?