Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:01
    motss commented #3269
  • 00:53
    codecov[bot] commented #4720
  • 00:53
    codecov[bot] commented #4720
  • 00:52
    codecov[bot] commented #4720
  • 00:52
    codecov[bot] commented #4720
  • 00:50
    codecov[bot] commented #4720
  • 00:50
    codecov[bot] commented #4720
  • 00:30
    codecov[bot] commented #4542
  • 00:30
    christian-bromann synchronize #4542
  • 00:30

    christian-bromann on cb-drop-node-8

    fix unit test (compare)

  • 00:26
    codecov[bot] commented #4720
  • 00:26
    christian-bromann synchronize #4720
  • 00:26

    christian-bromann on cb-get-rid-of-WebdriverIOAsync

    get rid of WebdriverIOAsync int… (compare)

  • 00:24
    christian-bromann synchronize #4740
  • 00:24

    christian-bromann on cb-update-typescript

    fix types (compare)

  • 00:07
    christian-bromann review_requested #4720
  • 00:06
    mgrybyk opened #4720
  • 00:06

    christian-bromann on cb-get-rid-of-WebdriverIOAsync

    get rid of WebdriverIOAsync int… (compare)

  • 00:03
    christian-bromann review_requested #4740
  • 00:02
    christian-bromann synchronize #4740
Anahi Costa
@moanableu

I would appreciate another set of eyes here. In my application a dynamic class is added when a the feature I'm testing is has been started in a previous session.
I am trying to implement a switch statement without much luck, the break; is being ignored and the second case is failing because a given selector does not display
``When(/^I access my feature$/, () => { const runningFeature = baseClass; switch (runningFeature) { case${baseClass}.running`:
openTool();
loadFeature();
browser.pause(500);
expect(browser.$(pageTitle).getText()).to.contain('Feature');
break;
case baseClass:
openTool();
fillData();
createFeature();
browser.pause(500);
expect(browser.$(pageTitle).getText()).to.contain('Feature');
break;
default:
break;
}
});

function eventAction() {
scrollToElement(browser.element('selector'));
browser.waitForEnabled('selector');
return browser.click('selector');
}

ERROR:
An element could not be located on the page using the given search parameters ("elem").
```

i would appreciate a link to a switch statement implementation if possible :)
Christian Bromann
@christian-bromann
@moanableu formatting the code correctly would help understand the code better
Mykola Grybyk
@mgrybyk
@grant-mccarriagher what so you mean by global hooks?
platon023
@platon023
Hi all, how in v5 use browser.getTabIds?
switchWindow?
Mykola Grybyk
@mgrybyk
@platon023 see get window handles
John Robinson
@jrobinson01
anyone have any examples of using WebdriverIO for screen scraping?
John
@jonn-set
hi
Christian Bromann
@christian-bromann
@jrobinson01 you need to be much more specific
John
@jonn-set
getting the following error when trying to run wdio command by passing a config file. This is a project within a module.
$ ./node_modules/.bin/wdio wdio-cucumber.conf.js
2019-12-14T23:48:14.520Z ERROR @wdio/config:ConfigParser: Failed loading configuration file: C:\*****\workspace\node.js\wdio-video-reporter\demo\wdio-cucumber.conf.js: undefined
wdio.js [command]
when do you see the undefined error?
The file does exist, not sure what this error is pointing to
Christian Bromann
@christian-bromann
seems to be an undefined node error, what happens if you do $ node wdio-cucumber.conf.js
John
@jonn-set
Thanks @christian-bromann it was a missing ffmpeg executable that was causing the issue
after reinstalling npm modules, the problems is now resolved, thanks for the quick response
skamineni
@skamineni
I get Allure Report is NaN% in jenkins. Any idea ?
Louis Liao
@Buzonxxxx
Screen Shot 2019-12-15 at 11.56.05 AM.png
Screen Shot 2019-12-15 at 11.59.08 AM.png
Hello, does anyone know how to change spec reporter time zone setting? it doesn’t match my local timezone.
Christian Bromann
@christian-bromann
it is because you run the test in a VM that runs in a different timezone
Louis Liao
@Buzonxxxx
Thanks for the reply, just curious, could VM timezone be modified?
Christian Bromann
@christian-bromann
Sure .. I don’t know how though
Louis Liao
@Buzonxxxx
Got it, thanks anyway:)
shaytolaculturetrip
@shaytolaculturetrip
can i set the isW3C to false in the wdio.conf. file? what is the parameter isW3C: false? do i put it in the chromeOptions / firefoxOptions or before?
shaytolaculturetrip
@shaytolaculturetrip
[1576401535.490][SEVERE]: Unable to receive message from renderer
[0-1] 2019-12-15T09:18:55.522Z ERROR webdriver: Request failed due to Error: chrome not reachable
  (Session info: headless chrome=79.0.3945.79)
  (Driver info: chromedriver=2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d),platform=Linux 4.14.146-120.181.amzn2.x86_64 x86_64)
anyone had this error when using the new chrome version ?
Mykola Grybyk
@mgrybyk
@shaytolaculturetrip see error message. You need to use latest chromedriver with latest chrome
If you use selenium standalone service see docs
shaytolaculturetrip
@shaytolaculturetrip
@mgrybyk do i need to update the selenium-standalone version in order to update the chromedriver?
Mykola Grybyk
@mgrybyk
@shaytolaculturetrip not likely, the docs have all the answers!
shaytolaculturetrip
@shaytolaculturetrip

@mgrybyk thanks for your help. the only npm i wasn't able to find is

"@wdio/mocha-framework": "5.6.3",

do you know if this still exists ? and if i need to update this npm? we have mocha latest version on the package.json

Mykola Grybyk
@mgrybyk
It exists, of course
@shaytolaculturetrip
shaytolaculturetrip
@shaytolaculturetrip

well i updated both

"@wdio/selenium-standalone-service": "5.16.10",
"chromedriver": "79.0.0",

and still i can see that he's running old version of chrome driver

Starting ChromeDriver 2.43.600233 (523efee95e3d68b8719b3a1c83051aa63aa6b10d) on port 28954

why is that ? :(

Rand AlQuran
@randquraan
anyone has the same issue Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL
i tried to increase or decrease but didn't work
shaytolaculturetrip
@shaytolaculturetrip
@randquraan did you set the timeouts in the beforeEach?
       originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL;
        jasmine.DEFAULT_TIMEOUT_INTERVAL = 100000;
Rand AlQuran
@randquraan
i should add on spec file also ? @shaytolaculturetrip
Erwin Heitzman
@erwinheitzman
@randquraan it probably means that there is a promise/action that is never resolving
Rand AlQuran
@randquraan

@shaytolaculturetrip will take a look thanks

@erwinheitzman the issue it was working fine now doesn't work

Rand AlQuran
@randquraan
@erwinheitzman A sessionId is required for this command
plus error
dinozarafonitis
@dinozarafonitis

There is an element that I am dealing with that looks like this:

<dt data-v-465135f2=""> Locality </dt>

Is it possible to have a function that returns the CSS Selector itself?

For example,what I would like to get back is this:

#app > div > div > div > div.flex.ContentIndividualView__RightPanel.xs3 > div > div > div.v-window > div > div > div > dl > dd:nth-child(5) > dl > dd:nth-child(19) > dl > dt:nth-child(1)

Is there such a function that can achieve this?

Mykola Grybyk
@mgrybyk
Don't think so, and it makes no sense because such selector is extremely unstable
dinozarafonitis
@dinozarafonitis

@mgrybyk The child of this label

<dt data-v-465135f2=""> Locality </dt>

It's a textfield. what I've been trying to achieve is to return the textfield based on the above label,

So for example, when I mention "locality" , can get back the equivalent textfield , which I can then set the value I would like to.

I don't want to create too many variables that each point to each CSS Selector, since there are too many that I have to deal with, so I have been looking for a way where if I can mention the label text, e.g. Locality, then I can get back the textfield. Any thoughts on how I can achieve that?

Mykola Grybyk
@mgrybyk
@dinozarafonitis search by text with xpath and that's it
Postgre
@Postgre
Hey folks
Postgre
@Postgre
I cannot get autocomplete on vs code for webdriverio, I have already the jdconf file with the right configuration, but only I get automation for the browser command, never for $ or $$ commands. Thank you very much for your help
Mykola Grybyk
@mgrybyk
@Postgre maybe you have jQuery or anything else that uses $ and $$ globals. Might be that some plugin causes that.
I'm using vscode autocompletion in js project and it works fine