Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 14:09
    AutomationReddy commented #6863
  • 10:35
    BorisOsipov closed #6865
  • 10:35
    BorisOsipov commented #6865
  • 10:23
    nilskasseckert opened #6865
  • 02:05
    eoogo opened #6864
  • May 15 18:08
    sqagithub opened #6863
  • May 15 18:05
    jamesmortensen opened #6862
  • May 15 13:18
    wswebcreation closed #6861
  • May 15 13:18
    wswebcreation commented #6861
  • May 15 12:40
    jonn-set commented #6859
  • May 15 12:40
    jonn-set commented #6859
  • May 15 11:10

    christian-bromann on cb-sync-without-fibers

    fix import (compare)

  • May 15 11:00
    guneetgarg opened #6861
  • May 15 10:51

    christian-bromann on cb-sync-without-fibers

    code refactoring transform array operations (compare)

  • May 15 09:05

    christian-bromann on main

    Special characters not properly… (compare)

  • May 15 09:05
    christian-bromann closed #6661
  • May 15 09:05

    christian-bromann on cb-fix-wait-for-cli-install

    (compare)

  • May 15 09:05

    christian-bromann on main

    fix wdio-wait-for install via c… (compare)

  • May 15 09:05
    christian-bromann closed #6858
  • May 15 09:05

    christian-bromann on main

    removing Contributor Guide refe… (compare)

krarpitgupta
@krarpitgupta
thanks @coeamyd yeah we can save the URL...but before that I am exploring if there is a way to include screenshot that include address bar
Christoph Herold
@coeamyd
Good luck. As I said, I believe, this is not possible. If you do prove me wrong, please post your solution :-) And good luck.
Marijana Rukavina
@mareru
@christian-bromann ok, I hope codemod will be helpful :) Would you say that sync mode can still be used with webdriverIO v7 and Node v 14 without any issues? At least for a while - until node 14 comes to end of life (2023-04-30)
Christian Bromann
@christian-bromann
yes, but I recommend to switch to async as we can’t continue supporting it with Node v16 anymore
cezarybielec-itm
@cezarybielec-itm
hi, i would like to speed up my webdriver io tests. I want to send a login request once and then get the token and set it in storage for each following test. Is there a way to do it using webdriverio features?
Christian Bromann
@christian-bromann
@cezarybielec-itm sure, you run a suite with one spec first that gets you the token and then store it in the environment and kick off all the other tests in parallel
Tuteez
@Tuteez
Guys, how to clear cash with wdio? do hard reset or something
Christian Bromann
@christian-bromann
you mean clear cache? you can use https://webdriver.io/docs/api/browser/reloadSession to get a new browser instance
Tuteez
@Tuteez
yes cache, thank you :) window.location.reload(true) works for me
Christian Bromann
@christian-bromann
really? This just reloads the page, also it has no bool parameter (https://developer.mozilla.org/en-US/docs/Web/API/Location/reload)
cezarybielec-itm
@cezarybielec-itm
@christian-bromann i got it but how do i set the token? is there a way using webdriverio features or should i go with browser.execute and javascript code?
Christian Bromann
@christian-bromann
set the token where?
Tuteez
@Tuteez

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
@christian-bromann
it seems that this parameter exists indeed https://webplatform.github.io/docs/apis/location/reload/
if it works for you, then great!
cezarybielec-itm
@cezarybielec-itm
in the localStorage
Christian Bromann
@christian-bromann
use the execute command, yes
cezarybielec-itm
@cezarybielec-itm
great, thank you
cezarybielec-itm
@cezarybielec-itm
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
@erwinheitzman
@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
praveendvd
@praveendvd

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

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
praveendvd
@praveendvd

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

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

this worked thanks
Madhan
@madhank_gitlab

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
@mareru

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?

navsterrr
@navsterrr

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']

tsibulya12
@tsibulya12
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'
rashiq231
@rashiq231
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?
sureshneni
@sureshneni
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: [
'./test/specs/login.spec.js',
'./test/specs/openNewAccount.spec.js'
]
},
openNewAccount.spec.js has to run only after login.spec.js file
BhushanKinholkar
@BhushanKinholkar
Hi all addValue is not function
I am getting this error
on webdriver io
nileshye
@nileshye
Hello All, Can we use a global variable set in wdio.config.js in all other classes like test, util etc?
Łukasz Zwozniak
@affreux:matrix.org
[m]
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
@razielron
is it possible to get a specific data of a test from custom-report?
question is well described here:
https://stackoverflow.com/questions/62451226/wdio-add-a-custom-property-to-test-object-web-driver-io
James
@jamesmortensen
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.
James
@jamesmortensen

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
@danizsh:matrix.org
[m]
hi can any help me about this if anyone good in python selenium scripts