Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:06
    christian-bromann closed #7435
  • 18:06
    christian-bromann commented #7435
  • 13:12
    EINBOX opened #7435
  • 12:39
    EINBOX commented #7423
  • 05:25
    wswebcreation commented #6538
  • Sep 17 11:01
    christian-bromann labeled #5505
  • Sep 17 11:01
    jayandran-Sampath commented #6538
  • Sep 17 10:54
    wswebcreation commented #6538
  • Sep 17 10:48
    jayandran-Sampath commented #6538
  • Sep 17 10:47
    jayandran-Sampath commented #6538
  • Sep 17 08:34
    oldmankit commented #7434
  • Sep 17 08:31
    christian-bromann commented #7433
  • Sep 17 08:29
    christian-bromann commented #7019
  • Sep 17 08:24
    christian-bromann commented #7423
  • Sep 17 08:22
    christian-bromann commented #7434
  • Sep 17 08:22
    christian-bromann closed #7434
  • Sep 17 08:22

    christian-bromann on main

    fix docs closes #7434 (compare)

  • Sep 17 05:22
    darkartswizard commented #4482
  • Sep 17 05:22
    darkartswizard commented #4482
  • Sep 17 01:58
    oldmankit opened #7434
Fedor Kerzhakov
@kerzh672322_gitlab
@pako88 thank you, but if I just copy/paste your package.json, it does not work anyways, could you be so kind and tell me what I should do?
jpsouthy93
@jpsouthy93
Trying to get wdio working on a colleagues machine - I've pulled my repo, installed what i believe is all dependencies, and when trying to run tests I get error '$(...).isExisting is not a function' which I believe is just a wdio function?
Not sure what information would be needed to trouble shoot this, if I clone the exact same repo on my machine it works a treat
chan-ai
@chan-ai
@erwinheitzman Is there a limit on how many tabs we can open using webdriverio? I have the sample code
browser.newWindow('www.google.com');
browser.newWindow('www.google.com');
browser.newWindow('www.google.com');
It opens only two tabs
4 replies
Pascal König
@pako88
@kerzh672322_gitlab i don't know what you should do without knowing your code. take a look here, with this it should work: https://webdriver.io/docs/wdio-chromedriver-service.html
Olga
@osmolyar
@martijnhjk we have that warning message as well. We set it globally via
global.expect = chai.expect global.assert = chai.assert global.should = chai.should()
but still also have to import chai's expect into those files where expect is used (as 'expect' specifically is not compatible with expect-webdriverio's). I think that is what the warning is about
3 replies
@jpsouthy93 please check which version of webdriverio is used in each case. $(...).isExisting only works in v5+. In v4, the syntax is browser.isExisting(selector);
@vrudhay we see the exact same issue with IE11 with the current driver/browser versions. Click() always fails due to 'move target out of range' error. It must be the driver since it works fine with earlier browser/driver versions. However it is not possible to install an older IE11 version (on Windows10, at least). : /
vrudhay
@vrudhay
@osmolyar
this IE11 is pain!
Is selenium-standalone must for running IE11 through WDIO - Arent we having any other way?
Olga
@osmolyar
@vrudhay I think it doesn't matter how we start up the selenium-server (using the selenium-standalone jar, @wdio/selenium-standalone-service, etc.) According to Erwin H. it's the IE driver itself, so not a webdriverio issue.

@kerzh672322_gitlab , there is some issue updating the driver for chrome version 83- you can scroll up on this channel to see discussion of it. It included this snippet: " "there's a pull request pending: giggio/node-chromedriver#2671 reply
If you want to prevent this in the future check the documentation! https://www.npmjs.com/package/chromedriver#versioning

creating a .npmrc file containing chromedriver_version=LATEST will always fetch you the latest version

The above is tested using the chromedriver service and probably doesn't work using the selenium-standalone service"

Erwin Heitzman
@erwinheitzman
@osmolyar that change has already been merged
Olga
@osmolyar
@raul.mocian_gitlab it looks like getWindowHandle() is a Webdriver thing, not Webdriverio. WebdriverIO v4 has browser.windowHandle() for the same purpose, and v5/v6 doesn't even seem to have that according to the documentation.
@erwinheitzman , oh, thanks for letting me know, @kerzh672322_gitlab , please disregard above reference then.
Stanislava
@sisillV
Hi all is it possible to open the browser at the beginning of the feature file and close it at the end of the feature file? Now the browser is open and close before and after every scenario. Thanks!
Tanu
@Tanu51859628_twitter
@erwinheitzman , I'm trying to get help with injecting a token in chrome browser console as"newSession('eec5b6c2c8749dfb1600d71f88e4def4') once the browser is open. I have written a function to get the token dynamically by using http library in the utils js.file. in wdio v.5 test suite and calling the token function in my test steps successfully but I'm not sure how to inject it in the browser console? Please help with any suggestion.
19 replies
newSession.png
My Test Case:
Injecting the Token.png
I dont want to open a new browser. I just want to inject the token in the current open browser.
Pablillo Calvo
@pjcalvo
image.png
Savka Oleg
@savkaoleg
What _NOT_FIBER means ?
Christian Bromann
@christian-bromann
it is an internal flag that helped us with the sync work
Savka Oleg
@savkaoleg
After some work I have _NOT_FIBER: false and Promise { <pending> } after any of commands. Any ideas what to do?
Christian Bromann
@christian-bromann
I would recommend to update to webdriverio v5 or v6
Savka Oleg
@savkaoleg
v6 now, node v12
Christian Bromann
@christian-bromann
ah ok, if you can reproduce your issue please fill an issue
Kriskof
@Kriskof
does anybody know if the visual regression work with webdriverio v6?
I've been trying to follow tutorials such as https://testautomationu.applitools.com/automated-visual-testing-javascript-webdriverio/chapter3.html but everything seems outdated and I couldn't get it to work
Tanu
@Tanu51859628_twitter
@Kriskof Try percy.io. Its simple. Add percy to package.json
Edit spec files to add percy cmmands
Set PercyToken
Run percy exec — ‘files’
You need to create an account with Percy to get the token
"devDependencies": {
"@percy/webdriverio": "^1.0.4",
Kriskof
@Kriskof
thanks Tanu!
I'll take a look at it
Dmytro Basiuk
@dmytro.basiuk_gitlab
does anyone know how to switch between tabs in chromeheadless mode? In normal mode I use: const windows = browser.getWindowHandles(); browser.switchToWindow(windows[number]); But in headless mode it just stuck in a place when I want to do something on a new tab. Also I used JS browser.execute('window.open = function(url) {window.location=url}'); before. But it's also doesn't work now
Olga
@osmolyar
@sisillV do you have a browser.reload() command in your beforeScenario/afterScenario hooks? Without that the browser should not reload spontaneously
Kriskof
@Kriskof
@Tanu51859628_twitter any idea how I can get past " Warning: Skipping visual tests. PERCY_TOKEN was not provided."?
13 replies
I followed the tutorial here https://docs.percy.io/docs/webdriverio-tutorial and I'm running in Visual Studio Code but unable to get it to work
Kriskof
@Kriskof
image.png
Tanu
@Tanu51859628_twitter
Set Percy Token XXXXXXXXX in your terminal before executing your test
Kriskof
@Kriskof
Thanks Tanu, Pablillo just helped me out. Looks like it's not "set" but because I didn't know VSC uses Powershell so it was using "$env" that solved my issue :)
Tanu
@Tanu51859628_twitter
Great!
Olga
@osmolyar
@sisillV do you have a browser.reload() command in your beforeScenario/afterScenario hooks? Without that the browser should not reload spontaneously. [edit] The beforeSuite/afterSuite hooks should be executed before/after each feature file with cucumber so you could put the reload command there.
@savkaoleg are you using @wdio/sync or async?
Savka Oleg
@savkaoleg
webdriverio.remote inside fibers
Samuel Freiberg
@samuelfreiberg
Hey everyone! I was wondering if anyone has performed Accessibility testing with WebDriverIO for a Windows application. Through my research, I've only found people doing it though Axe, which is specifically for Web applications.
umairnazeer
@umairnazeer
hi, is anyone here running tests on firefox? I am having a hardtime setting it up. I have installed wdio-geckodriver-service and geckodriver but still not able to run it. I tried firefox profile and geckodriver as a service too
Kriskof
@Kriskof
does anyone know how to run percy in sync mode? I can just remove async/await and still have it run but it doesn't take a snapshot when I do
umairnazeer
@umairnazeer
can anyone help me setting up firefox without using browserstack or any other services?
Olga
@osmolyar
@umairnazeer , it works for us using @wdio/selenium-standalone-service and the following config in wdio.config:
services: [ // Make sure @wdio/selenium-standalone-service installed
        ['selenium-standalone', {
            logPath: 'logs',
            installArgs: {
                drivers: {
                    chrome: { version: '81.0.4044.69' },
                    firefox: { version: '0.26.0' },
                    // edge: {version: '81.0.409.0'}, //doesn't install correct version and doesn't let you sub in correct driver renamed as grid does
                    ie: {
                        version: "3.5.1",
                        arch: process.arch,
                        baseURL: "https://selenium-release.storage.googleapis.com"
                    },
                    edge: {
                        binary: path.join(__dirname, 'msedgedriver.exe') // has to be absolute
                        // binary: "C:\drivers\msedgedriver.exe"
                    }
                }
            },
            args: {
                drivers: {
                    chrome: { version: '81.0.4044.69' },
                    firefox: { version: '0.26.0' },
                    // edge: {version: '81.0.409.0'} //doesn't install correct version and doesn't let you sub in correct driver renamed as grid does
                    ie: {
                        version: "3.5.1",
                        arch: process.arch,
                        baseURL: "https://selenium-release.storage.googleapis.com"
                    },
                    edge: {
                        binary: path.join(__dirname, 'msedgedriver.exe') // has to be absolute
                        // binary: "C:\drivers\msedgedriver.exe"
                    }
                }
            },
        }]
    ],
2 replies