Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 16:45
    erwinheitzman commented #7211
  • 16:44
    erwinheitzman commented #7211
  • 16:31
    erwinheitzman commented #7210
  • 16:24
    lacell75 edited #7211
  • 16:21
    lacell75 edited #7211
  • 16:19
    lacell75 edited #7211
  • 16:19
    lacell75 edited #7211
  • 16:18
    lacell75 opened #7211
  • 15:06
    lacell75 commented #7210
  • 15:00
    lacell75 edited #7210
  • 14:59
    lacell75 edited #7210
  • 14:58
    lacell75 opened #7210
  • 14:00
    erwinheitzman commented #7197
  • 12:25
    staizen-alexm commented #7042
  • 12:21
    iamkenos edited #7209
  • 12:15
    iamkenos opened #7209
  • 11:15
    staizen-alexm commented #6523
  • 11:13
    iamkenos opened #7208
  • 10:00
    harsha509 edited #7207
  • 09:59
    harsha509 opened #7207
Olga
@osmolyar

@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
Orane Findley
@ofindley

Hey everyone,

Is this the equivalent of waiting for an element to not exist? It is not working as expected.

element.waitForExist({ reverse: true })
wdio version - 5.22.1

Kriskof
@Kriskof
yes, I use it for wdio v6 and it works just fine
not sure about v5 but just make sure you define the element properly
Orane Findley
@ofindley
Yes I can perform other actions on the element
Kriskof
@Kriskof
I have mine like this
waitLoad() { this.pleaseWait.waitForExist({reverse: true, timeout: 50000}); }
and then I call waitLoad() wherever I need it
Orane Findley
@ofindley
It gives me the error element xyz still not existing after 10000ms
Kriskof
@Kriskof
did it exist before and then afterwards it doesn't exist and then show error?
Orane Findley
@ofindley
yes
Kriskof
@Kriskof
hmm that's weird
maybe a bug for v5