Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:15
    erwinheitzman commented #7779
  • 12:00
    wswebcreation edited #7779
  • 11:59
    wswebcreation opened #7779
  • 11:57

    wswebcreation on add-step-name

    feat: add cucumber step name in… (compare)

  • 11:53
    0Leon0 edited #7778
  • 11:51
    0Leon0 labeled #7778
  • 11:51
    0Leon0 labeled #7778
  • 11:51
    0Leon0 opened #7778
  • 11:46
    wswebcreation opened #7777
  • 11:43

    wswebcreation on cucumberjs-fix-skipped-state

    fix: update state for a skipped… (compare)

  • 11:26
    jan-molak commented #7770
  • 11:16
    christian-bromann commented #7770
  • 09:36
    DudaGod labeled #7776
  • 09:36
    DudaGod labeled #7776
  • 09:36
    DudaGod opened #7776
  • 05:07
    emilioDuarte edited #7773
  • 04:28
    emilioDuarte commented #7773
  • 04:28
    emilioDuarte commented #7773
  • 04:26
    emilioDuarte opened #7773
  • 04:26
    emilioDuarte labeled #7773
jineshkhimsaria
@jineshkhimsaria

Getting following error when running webdriverIO docker image (alpine-based) with selenium-standalone service & firefox while the same works with ubuntu based docker image -

[0-0] 2020-05-27T13:16:43.803Z DEBUG webdriver: request failed due to status 13
[0-0] 2020-05-27T13:16:43.803Z ERROR webdriver: Request failed with status 500 due to unknown error: invalid argument: can't kill an exited process
Build info: version: '3.141.5', revision: 'd54ebd709a', time: '2018-11-06T11:58:47'
System info: host: 'a8560b87fab4', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.76-linuxkit', java.version: '11.0.7'
Driver info: driver.version: unknown
remote stacktrace:
[0-0] 2020-05-27T13:16:43.803Z ERROR webdriver: unknown error: invalid argument: can't kill an exited process
Build info: version: '3.141.5', revision: 'd54ebd709a', time: '2018-11-06T11:58:47'
System info: host: 'a8560b87fab4', ip: '172.17.0.2', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.76-linuxkit', java.version: '11.0.7'
Driver info: driver.version: unknown
remote stacktrace:
    at getErrorFromResponseBody (/airbnb-wdio-poc/node_modules/webdriver/build/utils.js:124:10)
    at WebDriverRequest._request (/airbnb-wdio-poc/node_modules/webdriver/build/request.js:148:56)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async startWebDriverSession (/airbnb-wdio-poc/node_modules/webdriver/build/utils.js:44:16)
    at async Function.newSession (/airbnb-wdio-poc/node_modules/webdriver/build/index.js:46:23)
    at async remote (/airbnb-wdio-poc/node_modules/webdriverio/build/index.js:66:20)
    at async Runner._startSession (/airbnb-wdio-poc/node_modules/@wdio/runner/build/index.js:219:50)
    at async Runner._initSession (/airbnb-wdio-poc/node_modules/@wdio/runner/build/index.js:175:21)
    at async Runner.run (/airbnb-wdio-poc/node_modules/@wdio/runner/build/index.js:93:15)

Dockerfile -

FROM node:12.16-alpine

ENV NODE_PATH /airbnb-wdio-poc/node_modules/
ENV PATH /airbnb-wdio-poc/node_modules/.bin:$PATH

COPY airbnb-wdio-poc/*.json /airbnb-wdio-poc/
COPY airbnb-wdio-poc/*.js /airbnb-wdio-poc/
COPY airbnb-wdio-poc/pages/ /airbnb-wdio-poc/pages/
COPY airbnb-wdio-poc/tests/ /airbnb-wdio-poc/tests/

WORKDIR /airbnb-wdio-poc/
RUN pwd
RUN apk --no-cache add --virtual native-deps g++ gcc libstdc++ linux-headers make python
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk update
RUN apk add openjdk11
RUN apk add firefox-esr
RUN npm install --silent
RUN npm audit fix
RUN ls -l
RUN apk del native-deps g++ gcc linux-headers make python

some contents from wdio.conf.js -

capabilities: [{
        maxInstances: 1,
        browserName: 'firefox',
        "moz:firefoxOptions": {
            args: ["-headless"],
          },
}]

services: [['selenium-standalone']]
12 replies
Pablillo Calvo
@pjcalvo
Does that docker image has firefox installed? If not the standalone-service will not be able to work!
daniel anggrianto
@danggrianto
how do you find selector by id on mobile device? using $(#some_id) give me invalid selector: Locator Strategy 'css selector' is not supported for this session
Pablillo Calvo
@pjcalvo
cna you share more details? What is the system under test!
daniel anggrianto
@danggrianto
testing a hybrid app on android using appium.
Pablillo Calvo
@pjcalvo

@danggrianto you need a different approach. Look at this example
https://github.com/pjcalvo/wdio-appium-poc/blob/master/src/pages/home.page.js

Appium lets you identify the locators on the app.

daniel anggrianto
@danggrianto
so we need to use fully android=new UiSelector().resourceId("com.eliasnogueira.trianguloapp:id/txtLado1")
Pablillo Calvo
@pjcalvo
that is how I did it, but it was a native app instead of an hybrid one. What technology are u using?
daniel anggrianto
@danggrianto
hybrid app build with java calling vue site.
Wim Selles
@wswebcreation

@danggrianto

You need to switch context and switch to the webview to be able to use CSS selectors which you normally would use on websites

2 replies
Tanu
@Tanu51859628_twitter
image.png
Hi, I see these options in the wdio.conf.js " onReload: function(oldSessionId, newSessionId)" . How can I use these capabilities to inject newSession=('xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx') in my chrome browser after the session is created.
Or Can I use DevTool Services to set newSessionid?
Martijn Kuhlemeier
@martijnhjk
hello all! Quick question, Im exploring v6 and I noticed this log in the console Warning! Unsupported expect lib is used.
im a bit surprised because I am using Chai and https://webdriver.io/blog/2020/03/26/webdriverio-v6-released.html clearly states "If you already use an assertion library like Chai you can continue doing"
I'm setting expect globally by require('chai/register-expect');
is Chai not compatible with v6?
Djamal
@djamknacker_twitter

Hello here.
Updated my project from wdio v5 to v6 and faced with problem when running tests remotely on selenium grid.
Even if I set hostname: , port: , and path: , in wdio.conf tests are running on my machine.
Who knows if there were any config changes or maybe I need to add something else now in v6 to be able to run tests on remote selenium grid machine?

P.S> even if I set absolutely incorrect hostname in config -> it still launch browsers on my local machine. 😅

3 replies
crazy-reva
@crazy-reva
Hi All, I have been trying to do performance testing using wdio , I have followed the steps on to integrate chromedriver,devtools service in my project to run the tests, I am seeing the below error "browser.getMetrics() is not a function". Can anyone help me on how to resolve this issue? Thanks in advance!
Divya Seshadri
@divya_seshi_twitter
Hi everyone, Im new to the coding world and Im trying to automate our webpage for official purposes. Im trying to upload a file in import field but no luck. I tried the following commands --> setValue, chooseFile, uploadFile, addValue but nothing helped. Could someone help me on this? PS: Using macOs, node version - v12.16.1.
Pascal König
@pako88
@divya_seshi_twitter take a look here: https://webdriver.io/blog/2019/06/25/file-upload.html
Divya Seshadri
@divya_seshi_twitter
@pako88 Thank you for the response. I have tried that too. It isn't working for me.
1 reply
Pascal König
@pako88
@divya_seshi_twitter is you webpage in the internet? i can take a quick look at it
Javier
@javiergarciacotado
hello
fyi
I have opened an issue on github: webdriverio/webdriverio#5441
Divya Seshadri
@divya_seshi_twitter
@pako88 Its Zoho Mail web app, paid version.. I guess you will not be able to the view that particular page.
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
any one help me regarding this error
Pascal König
@pako88
@divya_seshi_twitter nope - then i can't help you sorry - you should stick to that blog article
GYANENDRA PANDEY
@gyanendrapmca
how to initialize browser object in @wdio/jasmine-framework
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