Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 05:22
    darkartswizard commented #4482
  • 05:22
    darkartswizard commented #4482
  • 01:58
    oldmankit opened #7434
  • Sep 16 17:41
    EINBOX commented #7423
  • Sep 16 15:09
    tobeliketree commented #7019
  • Sep 16 14:30
    wswebcreation commented #7423
  • Sep 16 13:30
    JordiSAGE opened #7433
  • Sep 16 12:07
    EINBOX commented #7423
  • Sep 16 12:06
    EINBOX commented #7423
  • Sep 16 11:52
    WilcoFiers commented #7432
  • Sep 16 11:25
    EINBOX commented #7423
  • Sep 16 11:15
    EINBOX commented #7423
  • Sep 16 10:05
    EINBOX commented #7423
  • Sep 16 09:57
    christian-bromann commented #7380
  • Sep 16 09:41
    EINBOX commented #7423
  • Sep 16 09:24
    opensourcesensor commented #7380
  • Sep 16 08:44
    christian-bromann closed #7432
  • Sep 16 08:44
    christian-bromann commented #7432
  • Sep 16 08:36
    christian-bromann commented #7423
  • Sep 16 08:21
    wswebcreation commented #7423
Pascal König
@pako88
@divya_seshi_twitter you can try it out here: https://the-internet.herokuapp.com/upload
GYANENDRA PANDEY
@gyanendrapmca

WARN @wdio/jasmine-framework: Unable to load spec files quite likely because they rely on browser object that is not fully initialised.
browser object has only capabilities and some flags like isMobile.
Helper files that use other browser commands have to be moved to before hook.
Spec file(s): E:\ACA PROJECT DETAILS\ec-app-testing\test\specs\basic.js

???

Martin Coronel
@martincxx
Hi Guys, do you know if we can use webdriverio for bookmarking a page on Chrome?
Aldira Putra Raharja
@dirathea

Hi guys, could anyone here help me with typescript and custom commands?
so I have this on my wdio.conf.js

    mochaOpts: {
        require: [
            'ts-node/register',
            'tsconfig-paths/register'
        ],
        ui: 'bdd',
        timeout: 60000
    },
before: function (capabilities, specs) {
        browser.addCommand('customConfig', function () {
            return {
                text: 'Hi Custom Command'
            }
        });
    },

and I've added this command to my custom type definition at types/wdio.d.ts

declare module WebdriverIO {
    // adding command to `browser`
    interface Browser {
        customConfig: () => any;
    }
}

and I also setup tsconfig.json as follows

{
    "compilerOptions": {
        "typeRoots": ["./types"],
...
}

when I execute the test my custom commands not recognized with error

 Error:  TSError: ⨯ Unable to compile TypeScript:
error TS2339: Property 'customConfig' does not exist on type 'BrowserObject'.
I'm not directly using src folders, all typescript files is under web/ and I've added it into my path on tsconfig
        "paths": {
            "*": [ "./*" ],
            "web/*": ["./web/*"]
        },
27 replies
Divya Seshadri
@divya_seshi_twitter
@pako88 Sure, thank u
vrudhay
@vrudhay
image.png

Hi, when I try to execute for edge, I get this error.

ERROR @wdio/runner: Error: Couldn't find executable for browser

I have also been running msedge driver to match my edge browser version 83

Dmitry Munda
@dimkin-eu
anyone having some issues/experience running wdio+browerstack+local in concurrent runs on one jenkins agent ?
I have feeling, that this stuff can kill local runners of concurrent job
13:39:31 LocalError: Multiple binaries spawned with same configuration. Closing older one.
13:39:31     at /var/opt/jenkins-slave/workspace/.../node_modules/browserstack-local/lib/Local.js:65:20
13:39:31     at ChildProcess.exithandler (child_process.js:294:7)
13:39:31     at ChildProcess.emit (events.js:311:20)
13:39:31     at ChildProcess.EventEmitter.emit (domain.js:482:12)
13:39:31     at maybeClose (internal/child_process.js:1021:16)
13:39:31     at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) {
13:39:31   name: 'LocalError',
13:39:31   message: '\u0000\u0000\u0000\u000b\u0000\u0000\u0000\u0000Multiple binaries spawned with same configuration. Closing older one.',
13:39:31   extra: undefined
13:39:31 }
13:39:31 
13:39:31 
13:39:31 Ended WebDriver sessions gracefully after a SIGINT signal was received!
Erwin Heitzman
@erwinheitzman
Haven't seen this before @dimkin-eu do you think you could provide an issue with a reproducible example?
2 replies
@vrudhay seems like it cannot find the browser binary at the default installation directory, you can also point it there
Viacheslav
@Gordiievskyi
@erwinheitzman sorry for ping you directly(I rised same question twice two days ago and didn't get any answer), just want to confirm that what I spot is a bug before open an issue in wdio git hub, it seams delay root suite doesn't work in wdio 6( I am not sure if it worked in prev versions). I set in mocha opts delay true and simple example from mocha do not execute any tests and mark them as skiped, while work in pure mocha. wdio docs doesn't have any example and if intended to work same as in pure mocha then I will open a ticket.
Raul Mocian
@raul.mocian_gitlab
It seems that browser.getWindowHandle() does not work on Chrome, does somebody know why? or if there is a workaround?
Fedor Kerzhakov
@kerzh672322_gitlab
Hi Guys, does Webdriver IO support Chrome Version 83? If yes, how do I need to change the package.json? Thank you
Pascal König
@pako88
vrudhay
@vrudhay
@erwinheitzman
Edge problem I resolved it... Now, for IE 11, I am using selenium-standalone
capabilities: [
{ "browserName": "internet explorer" }
],
services: ['selenium-standalone'],
I am able to launch the browser - but none of the events click are working... I am using IE11 - there are some registry setting in IE11 driver page. I did that as well.
Erwin Heitzman
@erwinheitzman
FYI, will fix this asap when I got the time: webdriverio/webdriverio#5443
vrudhay
@vrudhay
@erwinheitzman
Any quick support on wdio and ie11 settings? I am running out of ideas
Erwin Heitzman
@erwinheitzman
for anyone running into this, a quick workaround is to change the following in your config:
from runner: ''
to runner: 'local'
@vrudhay sorry but I am entering a meeting in exactly 1 minute
vrudhay
@vrudhay
@erwinheitzman Looking forward for any small bit of support... IE11 is crushing us
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