Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 10:24

    christian-bromann on main

    download resource docs from awe… (compare)

  • 07:27

    christian-bromann on main

    minor docs fix (compare)

  • 07:07

    christian-bromann on main

    adds missing details on returne… (compare)

  • 07:07
    christian-bromann closed #6875
  • 07:07
    christian-bromann labeled #6875
  • 07:03
    christian-bromann closed #6876
  • 07:03

    christian-bromann on main

    remove obsolete line fixes #68… (compare)

  • 07:01

    christian-bromann on main

    Adding wdio-eslinter-service to… (compare)

  • 07:01
    christian-bromann closed #6862
  • 07:01
    christian-bromann labeled #6862
  • 07:01
    christian-bromann synchronize #6862
  • 06:01
    jamesmortensen commented #6862
  • 05:59
    jamesmortensen synchronize #6862
  • 05:58
    jamesmortensen synchronize #6862
  • 05:44
    jamesmortensen synchronize #6862
  • 05:35
    jamesmortensen opened #6876
  • 04:13
    esaari edited #6875
  • 03:55
    esaari edited #6875
  • 03:54
    esaari edited #6875
  • 03:53
    esaari edited #6875
Christian Bromann
set the token where?

really? This just reloads the page, also it has no bool parameter (https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)

'By default, the reload() method reloads the page from the cache, but you can force it to reload the page from the server by setting the forceGet parameter to true: location.reload(true)." -> https://www.quanzhanketang.com/jsref/met_loc_reload.html why here is different info?

Christian Bromann
it seems that this parameter exists indeed https://webplatform.github.io/docs/apis/location/reload/
if it works for you, then great!
in the localStorage
Christian Bromann
use the execute command, yes
great, thank you
last question for today i promise :D if i call a .waitForDisplayed() on the WebdriverIO.Element is this element re-searched? or am i calling this method on the same, already found element?
Erwin Heitzman
@cezarybielec-itm the element is refetched
or to be more exact, the whole element chain is refetched
this prevents stale element references where one of the parent elements might refresh during two actions

capabilities: [{
"platformName": "Android",
"appium:platformVersion": "11",
"appium:deviceName": "Android Emulator",
"appium:app": "C:\Users\Downloads\app.apk",
"appium:automationName": "UiAutomator2",

Hi everyone i have this appium capability , i am starting the emulator from appium automativally by passing avd parameter.

The problem is the process never exits as the emulator is attached to the cmd session, how to force cmd or ps to close once webdriverio run completes

const {execSync} = require('child_process');

onComplete: function(exitCode, config, capabilities, results) {
execSync('adb emu kill');

this worked thanks

Hi all,

browser.execute('window.scrollTo(0, 0)');

Is this correct way to execute js script in wdio ? I am trying to reach the top of the web page, but its not working for me. Can anyone help me on this ? Thanks

Marijana Rukavina

Hello, I get this error in IntelliJ

TS2694: Namespace 'global.WebDriver' has no exported member 'ChromeOptions'

I am using webdriverIO v7 with Typescript and I have used WebDriver.ChromeOptions as a type, but it doesn't recognize it.
Anybody knows how to fix it?


hello folks , been stuck a few days trying to upgrade to webdriverio v6.12.1 from v4. @wdio/local-runner is failing to launch a test session with chromedriver service -

[0-0] ERROR @wdio/local-runner: Failed launching test session: TypeError: this._framework.init is not a function.

full stack trace here - https://paste.gg/p/anonymous/a073e92424c84f79b93156d5bd99797b
confirmed the chromedriver service was started successfully. this was working with webdriverio@4.14 but failing with webdriverio@6.12.1.
Would appreciate any help on this!

my package.json - webdriverio@6.12.1, @wdio/local-runner@6.12.1, @wdio/cli@6.12.1, wdio-chromedriver-service@6.0.4

my wdio.conf.js -
services: ['chromedriver']

Hi guys, I'm installing wdio v7 on a new laptop, and there package.json is not creating, can someone tell me how to fix this issue?
npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\tsibu\Desktop\WDIO\package.json'
Hello, I am new to webdriverIO, while trying to run using cucumber framework, even though the execution is happening, I see the steps are retried as if there was a failure
ERROR @wdio/local-runner: Failed launching test session: Error: Couldn't find page handle
at DevToolsDriver.getPageHandle (D:\webdriverio\test2\node_modules\devtools\build\devtoolsdriver.js:143:19) can anyone help how to resolve this?
Hi Team, I have used below block to run my multiple specs in sequential order but browser gettitng open twice at same times, please let me know how to fix it.
suites : {
login: [
openNewAccount.spec.js has to run only after login.spec.js file
Hi all addValue is not function
I am getting this error
on webdriver io
Hello All, Can we use a global variable set in wdio.config.js in all other classes like test, util etc?
Łukasz Zwozniak
Hi tsibulya12 (tsibulya12) Try to add your package.json file, use this command npm init -y
Then run this command npm i --save-dev @wdio/cli
and finally use this command to start the automatic configurator - npx wdio config
Raziel Alron
is it possible to get a specific data of a test from custom-report?
question is well described here:
I have a Selenium Hub running 3 instances of selenium/standalone-chrome using docker-compose. I have 3 spec files: spec1.js, spec2.js, and spec3.js. I want to start WebdriverIO from the CLI and have spec1 run on the first chrome image, spec2 on the second, and spec3 on the third.
In other words, I want to run all 3 spec files in parallel on different instances of the same browser so the tests finish faster.
I have read the instructions about setting this up in the capabilities, using maxInstances, but it seems that all 3 specs are run on all 3 instances of Chrome. My goal is to run different tests in parallel not the same tests in parallel. Is there an easy way to accomplish this? Thank you.

Hi Team, I have used below block to run my multiple specs in sequential order but browser gettitng open twice at same times, please let me know how to fix it.

@sureshneni login.spec.js should contain all of your tests to test that login works. For instance, what happens if you enter valid credentials. What about an empty password, what about empty username?

However, openNewAccount.spec.js isn't testing login, but perhaps it requires you to be logged in first. If that's the case, you can make the spec files independent of one another. Make sure openNewAccount.spec.js doesn't depend on login.spec.js. Hope this helps.

pocket monster
hi can any help me about this if anyone good in python selenium scripts

rom selenium import webdriver driver = webdriver.Chrome("C:/Users/danish/PycharmProjects/chromedriver.exe") driver.get("https://www.tppcrpg.net/login.php")

identify username, password and signin elements




identify Enter Trainer Name/Number



it works fine here but when i add again this line to click continue button


then this gives me this error selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".submit"} (Session info: chrome=90.0.4430.72)

Hello everybody!
what should I do?
Refael Mah
Hi, I've started to use the Re-run Service with mocha and it works great. But I've noticed that it rerun skipped tests also, is it the expected behavior?
Erwin Heitzman
@oioi11 that should work I think, what happens if you add a waitForExist before clicking the element?
2 replies
Erwin Heitzman
@PrinceEX87_twitter I believe this service was created before we supported those cases, by now I think everything is supported natively. checkout https://webdriver.io/docs/retry/ and try without the service I'd say
can I exclude a specific suite (mocha) of feature files (Cucumber) in the before hook in the config file?
@Amrkamel1 I don't think you can exlude a suite. You can exclude spec file by spec file
5 replies