by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 19:21
    BorisOsipov commented #5701
  • 19:06
    satyasreem commented #5701
  • 19:06
    satyasreem commented #5701
  • 18:51
    satyasreem commented #5701
  • 18:36
    satyasreem commented #5701
  • 18:35
    satyasreem commented #5701
  • 17:58
    christian-bromann commented #5699
  • 17:21
    jayandran-Sampath commented #5699
  • 14:16

    christian-bromann on master

    Fix prototypes for items in get… (compare)

  • 14:16
    christian-bromann closed #5705
  • 14:16
    christian-bromann closed #5703
  • 14:16
    christian-bromann labeled #5705
  • 13:53
    osmolyar commented #4134
  • 13:53
    osmolyar commented #4134
  • 13:53
    L0tso commented #5703
  • 13:49
    codecov[bot] commented #3148
  • 13:49
    codecov[bot] commented #5040
  • 13:49
    jsf-clabot commented #5705
  • 13:48
    jsf-clabot commented #5705
  • 13:48
    L0tso opened #5705
JI
@J-JRC
Hey Everyone
Is it a known issue that moveTo function does not work on Safari? is there any workaround?
HardKode
@HardKode

Context: webdriverIO v5
Issue : console ouput variation makes me think local runner doesnt shutdown properly
Normal console log :

Spec Files:     1 passed, 1 total (100% completed) in 00:00:16 

2020-05-22T19:48:56.766Z INFO @wdio/local-runner: Shutting down spawned worker
2020-05-22T19:48:57.018Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-05-22T19:48:57.018Z INFO @wdio/local-runner: shutting down

Suspected issue console:

[firefox 3.10.0-1062.4.3.el7.x86_64 linux #0-0] 29 passing (10m 3.4s)


Spec Files:     1 passed, 1 total (100% completed) in 00:10:08

This matters because I am running it in a script that should return 0 and I am wondering why the difference in console ouput.

Jeremy Schneider
@YmerejRedienhcs

My screenshots on failure are not happening as I want. I have this as my afterTest function:

  afterTest: function (test) {
    if (!test.passed) {
      const secs = Math.floor(new Date().getTime() / 1000);
      const fname = `${encodeURIComponent(test.title.trim().replace(/\s+/g, '-'))}_${secs}.png`;
      const fp = join(process.cwd(), this.screenshotPath, fname);
      console.info(`saving screenshot: ${fp}`);
      browser.saveScreenshot(fp);
    }
  },

but it doesn't seem to happen right at the point of failure, but rather, later, after the bad page state is no longer shown. What would be causing this, and how can I work around/fix it?

Felix Ivan Romero Rodríguez
@firomero

It's not in your package.json dependencies though. So you must be using a global wdio? The global wdio may not see the local @wdio/selenium-standalone-service. Recommend having all packages available locally.

thanks a lot

Nitin Venkat Rachabathuni
@NitinBuzz
Hey All, any hints on how to test md-select ?
Erwin Heitzman
@erwinheitzman
@NitinBuzz
$('md-select[someUniueAttribute="someUniqueValue"]').click();
$('md-option[ng-value="someUniqueValue"]').click();
something like that
and this goes for any select
sometimes the options are part of the select and sometimes not but the basics stay the same
@YmerejRedienhcs that can happen if the command triggered an action that caused your test to fail but wasn't expected in the test
Erwin Heitzman
@erwinheitzman
What would be causing this, and how can I work around/fix it? => can you provide more info on what it is you get and what you expect?
Nitin Venkat Rachabathuni
@NitinBuzz

sometimes the options are part of the select and sometimes not but the basics stay the same

Thanks Erwin :)

Vahan
@MeVa85_twitter
Is it possible to get the WebElement type object in wdio? The return type of $('selector') is WebdriverIO.Element
Ambreen Khan
@arkhangelsk
Anyone have experienced this error while running the test:
ERROR @wdio/local-runner: Failed launching test session: TypeError: Cannot convert undefined or null to object for node_modules/@wdio/sync/build/executeHooksWithArgs
As a result of this error, it shows an additional failed Test case…If I run 1 TC that is passed, it shows 1 Passed, 1 Failed!
Luc Verdier
@Verdier
Hi there, some one know why the browser restarts after each test file, even when grouped inside a suite? Is there a way to prevent this behavior? I have search in every part of the documentation but there is no other mention that a very old restart: false which looks to be deprecated... :/
Phil Merwin
@pmerwin
@alorlov Man that is awesome , thanks for the tip!
Baha
@hijazi
Hi guys, in wdio v4 there was a swipe command, now there isn't, and there's a touchAction command that only works with Appium, but I need to test a slide swipe functionality on my laptop on the browser, do you have any idea how to do that?
I'll try something like this:
browser.execute(() => {
        // @ts-ignore
        (document as HTMLDocument).querySelector('html').scroll();
    });
Daljit Singh
@daljit08_gitlab

Hi , am getting an abrupt error without much showing in the context with appium 1.17.1 and webdriverIo any version. So i assume its appium issue. if anything incorrect providedin config or a loose wire connection to devices or any other things, running the script always shows

ERROR webdriver: RequestError: read ECONNRESET. always shows this generic message.

Earlier with appium 1.15.1 it shows some specific error string e.g device of os 10 not found or etc...
so does it something with node_modules as i have 12.17.0. or what?

Jayshreekant Shreevastava
@jayshreekant
@christian-bromann how to scroll vertically in appium for ios and android.

Hi , am getting an abrupt error without much showing in the context with appium 1.17.1 and webdriverIo any version. So i assume its appium issue. if anything incorrect providedin config or a loose wire connection to devices or any other things, running the script always shows

ERROR webdriver: RequestError: read ECONNRESET. always shows this generic message.

Earlier with appium 1.15.1 it shows some specific error string e.g device of os 10 not found or etc...
so does it something with node_modules as i have 12.17.0. or what?

@daljit08_gitlab Scroll above ECONNRESET, you will find the elaborated error, it is mostly configuration issue

@christian-bromann how to scroll vertically in appium for ios and android.
GYANENDRA PANDEY
@gyanendrapmca

setValue | keys command?

It's not working, due to keyboard enabled here- i faced same issue in appium/java also and resolve using this- driver.getKeyboard().sendKeys("jschwartz"); But, i didn't found anything here, how to handle this thing.

??

Daljit Singh
@daljit08_gitlab
@jayshreekant There is nothing above that line. what configuration error it was showing in appium 1.15.1 but with 1.17.1 its showing common error for all the error whether configuration or connection problem or missing .apk file etc.
GYANENDRA PANDEY
@gyanendrapmca
browser.keys - throwing error - URL '/session/379ca633-968e-45b5-bdfc-758233a09117/actions' did not map to a valid resource and close the application, someone please help regarding this, how to resolve this one?
Olga
@osmolyar
@Verdier , do you have a browser.reload() in any hooks?
@arkhangelsk , given the error with /executeHooksWithArgs, do you have any hooks being called with arguments?
Olga
@osmolyar
@YmerejRedienhcs I would suggest putting the screenshot logic in an afterStep hook, not afterTest, since by the time afterTest runs some other things may have happened (e.g., a reload)
@HardKode are you using a different loglevel setting between the two variations?
GYANENDRA PANDEY
@gyanendrapmca

browser.keys - throwing error - URL '/session/379ca633-968e-45b5-bdfc-758233a09117/actions' did not map to a valid resource and close the application, someone please help regarding this, how to resolve this one?

??

chirag-farfetch
@chirag-farfetch
Hello, does anyone know how can i use this locator? do i need to put any question around /n?
'~Environment\ntest'
Daljit Singh
@daljit08_gitlab

Hello, does anyone know how can i use this locator? do i need to put any question around /n?

if you are using Accessibility id, then i think its not required. if its "Environment test"

chirag-farfetch
@chirag-farfetch
@daljit08_gitlab no it cannot find still
Daljit Singh
@daljit08_gitlab
//UIAButton[@contains(@name, 'Environment test')]
@chirag-farfetch
Valter
@valterex
hey everyone, i'm running node v13.1.0 and getting a tedious error after running npx wdio config -y, looks like fibers is an issue but i have no clue whats up
chirag-farfetch
@chirag-farfetch
@daljit08_gitlab no not valid
Olga
@osmolyar
@valterex not sure but maybe node v13 is not actually supported, (even though it says 'v12.16.1 or higher). Actually looking back @savkaoleg reported the same errir with node 13.1.0. npx wdio config -y does work with node 12.9.0
Baha
@hijazi
I've been trying so hard to simulate a swipe on a slide page but I couldn't on the pwa I'm working on
Olga
@osmolyar
@savkaoleg ,it looks like the above issue mentioned by @valterex is another instance of v13.1.0 resulting in the issue with _FIBERS
Baha
@hijazi
the following code works on another project inside a browser.execute:
document.querySelector('html').scroll(0,1000);
but it's not working on the current project. please help
in v4 there seems to have been a browser.swipe but it's not available anymore and the gesture actions are only available for Appium but I'm testing on laptop chrome
Dmytro Basiuk
@dmytro.basiuk_gitlab
does someone know, can we check somehow during the test running, whether chrome is in headless mode or not? I want to execute some code block if running in headless, and execute another block - if not headless
Scott Mac Donald
@Corinos
Hey folks. When it comes to using selectors in my WDIO tests, I've been testing them in the console of my browser first to see if they work (firefox). Is that a valid way of confirming you have the right selector? Are there scenarios where something might work in the browser but not in the test?
Ben Siggery
@siggerzz
Is it possible to get ES6 import syntax working in wdio.conf.js?
Christian Bromann
@christian-bromann
@dmytro.basiuk_gitlab you can check by looking into the capabilities
Dmytro Basiuk
@dmytro.basiuk_gitlab

@dmytro.basiuk_gitlab you can check by looking into the capabilities

I need autocheck by test during its running

Ben Siggery
@siggerzz
@Corinos I've always taken the approach of doing Ctrl + F in the devtools inspect tab and doing a search for the selector. Never failed me :)
Christian Bromann
@christian-bromann
@dmytro.basiuk_gitlab you can access the capabilities during the test: https://webdriver.io/docs/browserobject.html