by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 12:47
    efalkner commented #5711
  • 12:32
    seanpoulter commented #5560
  • 12:01
    rendmath opened #5720
  • 11:50
    DivyaTippa commented #5685
  • 08:25
    davedoesdev closed #5719
  • 08:25
    davedoesdev commented #5719
  • 08:15
    rendmath commented #5712
  • 08:08
    davedoesdev commented #5719
  • 08:06
    davedoesdev opened #5719
  • 07:36
    rendmath commented #5712
  • 07:34
    rendmath synchronize #5712
  • 07:11
    koggdal synchronize #5710
  • 07:11
    koggdal edited #5710
  • Aug 10 22:25
    abecks commented #5481
  • Aug 10 20:47
    jsf-clabot commented #5718
  • Aug 10 20:47
    dependabot-preview[bot] labeled #5718
  • Aug 10 20:47
    dependabot-preview[bot] opened #5718
  • Aug 10 20:47

    dependabot-preview[bot] on npm_and_yarn

    Bump jest-circus from 26.1.0 to… (compare)

  • Aug 10 20:46
    jsf-clabot commented #5717
  • Aug 10 20:46
    dependabot-preview[bot] labeled #5717
efalkner
@efalkner
hello All, I'm experiencing an error using both saucelabs and browserstack with the current version of webdriverIO. Requests are being rejected with the following error: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: The protocol 'bs:' used in 'bs://10786640fe6fd38d17ed3f78b6bfbe5334ad7943' is not supported. Only http: and https: protocols are supported
has anyone else run into the same issue with establishing a connection?
sharmavdeep
@sharmavdeep

hi I am using following versions
webdriverio@6.1.7, node v10.22.0, InternetExplorerDriver server (64-bit) 3.150.1.0
when I call browser.url(url);

IE opens and loads the page
but this function never returns. My tests hangs and times out

2020-08-10T07:23:39.422Z INFO @wdio/cli:launcher: Run onPrepare hook
2020-08-10T07:23:39.427Z INFO @wdio/cli:launcher: Run onWorkerStart hook
2020-08-10T07:23:39.430Z INFO @wdio/local-runner: Start worker 0-0 with arg: wdio-multi-browser.conf.js,--suite,checkbox
[0-0] 2020-08-10T07:23:40.450Z INFO @wdio/local-runner: Run worker command: run
[0-0] 2020-08-10T07:23:40.455Z DEBUG @wdio/local-runner:utils: init remote session
[0-0] 2020-08-10T07:23:40.458Z INFO webdriverio: Initiate new session using the ./protocol-stub protocol
[0-0] RUNNING in internet explorer - C:\dpg\system-tests\test\features\checkbox\checkBoxes.feature
[0-0] 2020-08-10T07:23:41.890Z DEBUG @wdio/local-runner:utils: init remote session
[0-0] 2020-08-10T07:23:41.890Z INFO webdriverio: Initiate new session using the webdriver protocol
[0-0] 2020-08-10T07:23:41.892Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session
[0-0] 2020-08-10T07:23:41.892Z INFO webdriver: DATA { capabilities:
{ alwaysMatch: { browserName: 'internet explorer' },
firstMatch: [ {} ] },
desiredCapabilities: { browserName: 'internet explorer' } }
[0-0] www.google.com
[0-0] 2020-08-10T07:23:52.146Z INFO webdriver: COMMAND navigateTo("http://www.google.com/")
[0-0] 2020-08-10T07:23:52.146Z INFO webdriver: [POST] http://localhost:4444/wd/hub/session/924bcbd8-2fb3-4d2c-b8db-3ec9a5c589f3/url
2020-08-10T07:23:52.147Z INFO webdriver: DATA { url: 'http://www.google.com/' }
[0-0] Error in "Interact with Checkbox: Undefined Scenario: Given I am on "www.google.com" url"
function timed out, ensure the promise resolves within 60000 milliseconds
[0-0] 2020-08-10T07:24:52.192Z INFO webdriver: COMMAND deleteSession()
[0-0] 2020-08-10T07:24:52.193Z INFO webdriver: [DELETE] http://localhost:4444/wd/hub/session/924bcbd8-2fb3-4d2c-b8db-3ec9a5c589f3
2020-08-10T07:24:52.388Z DEBUG @wdio/local-runner: Runner 0-0 finished with exit code 1
[0-0] FAILED in internet explorer - C:\dpg\system-tests\test\features\checkbox\checkBoxes.feature
2020-08-10T07:24:52.391Z INFO @wdio/cli:launcher: Run onComplete hook

"spec" Reporter:

[internet explorer windows #0-0] Spec: C:\dpg\system-tests\test\features\checkbox\checkBoxes.feature
[internet explorer windows #0-0] Running: internet explorer on windows
[internet explorer windows #0-0] Session ID: 924bcbd8-2fb3-4d2c-b8db-3ec9a5c589f3
[internet explorer windows #0-0]
[internet explorer windows #0-0] Interact with Checkbox
[internet explorer windows #0-0]
[internet explorer windows #0-0] ✖ Given I am on "www.google.com" url
[internet explorer windows #0-0]
[internet explorer windows #0-0] 1 failing (1m 8.1s)
[internet explorer windows #0-0]
[internet explorer windows #0-0] 1) Given I am on "www.google.com" url
[internet explorer windows #0-0] function timed out, ensure the promise resolves within 60000 milliseconds
[internet explorer windows #0-0] Error: function timed out, ensure the promise resolves within 60000 milliseconds
[internet explorer windows #0-0] at Timeout._time.default.setTimeout [as _onTimeout] (C:\dpg\system-tests\node_modules\cucumber\lib\user_code_runner.js:76:18)
[internet explorer windows #0-0] at ontimeout (timers.js:436:11)
[internet explorer windows #0-0] at tryOnTimeout (timers.js:300:5)
[internet explorer windows #0-0] at listOnTimeout (timers.js:263:5)
[internet explorer windows #0-0] at Timer.processTimers (timers.js:223:10)

Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:01:12

2020-08-10T07:24:52.395Z INFO @wdio/local-runner: Shutting down spawned worker
2020-08-10T07:24:52.647Z INFO @wdio/local-runner: Waiting for 0 to shut down gracefully
2020-08-10T07:24:52.648Z INFO @wdio/local-runner: shutting down
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! e2e@

kraund
@kraund
Is there a kind person to help me with configurating a workspace for testing on real ios device using appium? trying to maintain it by guides but get bunch of different errors. I will be so much grateful, it's very important for me now
shaytolaculturetrip
@shaytolaculturetrip

Hi everyone,
i want to add 'wdio-browserstack-reporter' to our project.
since i added it and configure it i get this error :

2020-08-10T10:12:38.442Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
    at BaseReporter.initReporter (\node_modules\@wdio\runner\build\reporter.js:124:14)
    at Array.map (<anonymous>)
    at new BaseReporter (\node_modules\@wdio\runner\build\reporter.js:32:39)
    at Runner.run (\node_modules\@wdio\runner\build\index.js:77:21)
    at process.on.m (\node_modules\@wdio\local-runner\build\run.js:37:20)
    at process.emit (events.js:194:15)
    at process.EventEmitter.emit (domain.js:441:20)
    at emit (internal/child_process.js:820:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

i saw this report : webdriverio/webdriverio#5229 , but i'm using WDIO V5
here is the package.json :

devDependencies
    "@wdio/allure-reporter": "5.18.6",
    "@wdio/browserstack-service": "^6.1.15",
    "@wdio/cli": "5.18.4",
    "@wdio/devtools-service": "5.16.16",
    "@wdio/dot-reporter": "5.18.6",
    "@wdio/junit-reporter": "5.18.6",
    "@wdio/local-runner": "5.18.4",
    "@wdio/mocha-framework": "5.18.6",
    "@wdio/selenium-standalone-service": "5.16.10",
    "@wdio/spec-reporter": "5.18.6",
    "@wdio/sync": "5.18.6",

do i need to downgrade the browserstack-service?

2 replies
Mathieu Renda
@rendmath
The html reporter fails when no logger is provided
It is due to a bug in rpii/wdio-html-reporter
Not super user-friendly, especially if you want to run with a minimal config for simplicity
A PR has been created
aaronhall63
@aaronhall63

I am using cucumber with webdriverio. I don't want to run my commented feature file. but still, it opens my commented feature file.

Execution of 3 spec files started at

although two of features are commented

Robert Torres
@robto09_twitter
Hellow! If I want to validate if an View is displayed is this waay right with jasmine? In local run ok but in SauceLabs test fails cause says should be false. const isViewDisplayed = $('~myView').isDisplayed(); expect(isViewDisplayed).toBe(true);
Sam55555
@Sam55555
Hello, using somebody webdriverio on the aws with the gitlab-runner and saucelabs? Current got error by using saucelabs sc tunnel:
ERROR webdriver: Request failed with status 200 due to Error: Response has empty body
ERROR webdriver: Error: Response has empty body
kraund
@kraund
good afternoon, facing a problem "ERROR webdriver: Request failed with status 404 due to Error: The URL '/session' did not map to a valid resource
[0-0] 2020-08-10T15:47:41.805Z ERROR webdriver: Error: The URL '/session' did not map to a valid resource"
trying to test locally on android device. anyone knows what's going on ?
4 replies
aaronhall63
@aaronhall63

how to maximize window size. I am trying

browser.setWindowSize(1366,768);

but I want to maximize the window without passing width and size. if I want to run on another machine I will change it and I don't need to do that every time.

7 replies
Mathieu Renda
@rendmath
In my (short lol) experience, adding browserstackLocal: true to the capabilities doesn't actually seem to be required to get local testing working + it causes an error with TS config files because it is not defined in webdriver.d.ts. Should we remove it from the docs ? Or add it to the definitions ?
2 replies
Stacku Stack
@stackustack_gitlab
Hey, does anyone have experience with wiremock? I'm trying to start the server and redirect all traffic from app <=> backend to app <=> wiremock server - but Im wondering if thats possible without changing the code of the app. I know that's possible with changing the codebase, from targeting my BE endpoints to target localhost (for iOS), but I'm wondering if thats doable somehow without changing the targeted endpoint in the codebase (for example with some proxy + wiremock settings). Unfortunately it's not possible to change the codebase, so I need to take it more like a blackbox. Any help? :)
kiranmai1202
@kiranmai1202
Hello All,
So far we did automation using only UI CTA
can someone help me if there is an approach in webdriverio to compare and validate UI using backend
endpoints like GET,POST,PUT, DELETE etc..
Thanks!
eswaraphani
@eswaraphani
Hi, Need an support on how to pass non English characters (like Thai/Japanese words) in a text field through webdriverio
kblain1967
@kblain1967
Has anyone started seeing issues with clearValue() with the latest Chrome version? Firefox is working well, but in Chrome, we are seeing that it's not clearing the value. We use setValue() in many input fields and noticed the value was not being cleared so I called clearValue() directly to test. We use browserstack local, async (await), and Webdriver v6. It seems like this previous bug -> webdriverio/webdriverio#3024 Note: The bug does state that it's an issue with the Chromedriver, which is also what I am thinking. Our workaround is to use the keys() and Cntrl-A and Delete to remove the value.
Gabriel Salla
@Salla97
@kblain1967 hi, I'm also having a problem at clear. How did you manage using key ()? I use macOS
11 replies
i tried with key('Delete') but not working
anna john
@annajoh03062777_twitter
hi All
Can any one please tell me how to do update a field in android chrome browser using webdriverio and then within the same test open the android app using appium and validate the filed updated is updated in the app side?
ldorval480
@ldorval480
Hello, I can't seem to get "Rerun single tests in Jasmine or Mocha" from Retry Flaky Tests doc to work.
Adding the number of reruns as the last parameter of the test block function gives me an error (Expected 1-2 arguments, but got 3). Is there something I am supposed to add to the configuration for this to work?
Niranjan Khare
@niranjankhare_gitlab
Hello, I'm new to webdriverio and trying to execute tests on a remote grid. (for the purpose, the 'remote' is my localhost, which has a selenium hub running on port 4444, in debug mode). Now, when I setup the sample demo projects and run tests, i see that the tests run, but I don't see anything connected to the hub. There's no debug output like i usually see when I use, say pytest
2 replies
In fact, the tests run (magically?? :) ) even when the hub on localhost is down :)
I tried updating wdio.conf.js with settings like runner: 'remote', host: '127.0.0.1', port: 4444,
however that remote doesn't work
JimmyMai13
@JimmyMai13
Hello All,
I have been getting the error browser.cdp is not a function for @wdio/devtools-service: 6.4.0. and have added devtools to services conf, has anyone got this to work? https://webdriver.io/docs/devtools-service.html#event-listener
Robert Torres
@robto09_twitter
Has anyone here used this library? https://github.com/wix/react-native-repackager . I need to change when running the test .e2e.js instead of js
vivek-kini
@vivek-kini
How can we assert that the page is refreshed after certain action using wdio v6 ?
6 replies
Juan Alvarez Arquillos
@arquillos
Hi guys! I am working with a native Android app using WebDriverIO v6. In the app there is a button to send an email. When the button is clicked an email is sent and the device default mail app is opened. At this point I can´t get any UI component from the mail app! How can I select any component from this mail app? (I tried changing the context with no result). Thank you in advance!
Ferga Dipa
@fedika

Hi, I've just upgraded wdio from v5 to v6 but I found it cannot work with selenoid properly on v6, while on v5 I did not have any problem with selenoid.

my selenoid run on localhost:4003

the error :
ERROR @wdio/runner: Error: Failed to create session.
Unexpected token Y in JSON at position 0 in "http://localhost:4003/session"
at startWebDriverSession (/Users/fergadipa/Documents/Projects/Astra/wdio-mobile-web-natacara/node_modules/webdriver/build/utils.js:45:11)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
[0-0] Error: Failed to create session.
Unexpected token Y in JSON at position 0 in "http://localhost:4003/session"

JustSittinHere
@JustSittinHere
Try changing the path property in the wdio conf to /wd/hub
Ferga Dipa
@fedika
oke
GREAT! @JustSittinHere thank you very much!
SkylerGrail
@SkylerGrail
Hi everyone
aaronhall63
@aaronhall63

/**

  • Check the URL of the given browser window
  • @param {String} falseCase Whether to check if the URL matches the
  • expected value or not
  • @param {String} expectedUrl The expected URL to check against
    */

    export function checkUrl(falseCase: string, expectedUrl: string): void {
    const currentUrl = browser.getUrl();
    
    if (falseCase) {
     expect(currentUrl).to.not
       .equal(expectedUrl, `expected url not to be "${currentUrl}"`);
    } else {
     expect(currentUrl).to
       .equal(
         expectedUrl,
         `expected url to be "${expectedUrl}" but found "${currentUrl}"`,
       );
    }
    }

    I am not understanding what is falseCase param? please help me I am using this cucumber boilerplate .

SkylerGrail
@SkylerGrail
I have an issue when trying to run my tests on a docker image in Gitlab CI the error is the following :debug @wdio/sync couldn't load fibers package for node v10 and above, the node version is 12.18.3 . Tests are fully functional locally with a node 12.18.0
shaytolaculturetrip
@shaytolaculturetrip

Hi everyone,
i want to add 'wdio-browserstack-reporter' to our project.
since i added it and configure it i get this error :

2020-08-10T10:12:38.442Z ERROR @wdio/local-runner: Failed launching test session: TypeError: ReporterClass is not a constructor
    at BaseReporter.initReporter (\node_modules\@wdio\runner\build\reporter.js:124:14)
    at Array.map (<anonymous>)
    at new BaseReporter (\node_modules\@wdio\runner\build\reporter.js:32:39)
    at Runner.run (\node_modules\@wdio\runner\build\index.js:77:21)
    at process.on.m (\node_modules\@wdio\local-runner\build\run.js:37:20)
    at process.emit (events.js:194:15)
    at process.EventEmitter.emit (domain.js:441:20)
    at emit (internal/child_process.js:820:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

i saw this report : webdriverio/webdriverio#5229 , but i'm using WDIO V5
here is the package.json :

devDependencies
    "@wdio/allure-reporter": "5.18.6",
    "@wdio/browserstack-service": "^6.1.15",
    "@wdio/cli": "5.18.4",
    "@wdio/devtools-service": "5.16.16",
    "@wdio/dot-reporter": "5.18.6",
    "@wdio/junit-reporter": "5.18.6",
    "@wdio/local-runner": "5.18.4",
    "@wdio/mocha-framework": "5.18.6",
    "@wdio/selenium-standalone-service": "5.16.10",
    "@wdio/spec-reporter": "5.18.6",
    "@wdio/sync": "5.18.6",

do i need to downgrade the browserstack-service?

Colin Wren
@colinfwren

Hi everyone, I've posted this on the Appium Gitter but was suggested I try here too:
hopefully this me being stupid but I managed to get drag and drop working on iOS with the following code and I'm running it on Android, It carries out the long press and does the drag but nothing happens. If I do the drag and drop manually it works so I'm a bit confused. I've uploaded a video of the test run here: https://youtu.be/uKWIDFXa-jo

await this.client.touchAction([
            { action: 'longPress', x: xPos, y: fromYPos },
            { action: 'wait', ms: 6000},
            { action: 'moveTo', x: xPos, y: toYPos},
            { action: 'wait', ms: 3000},
            { action: 'release' }
        ]);

I don't think it's an issue with WDIO as it's sending the commands but has anyone experienced anything similar with Android & Appium using UiAutomator2 ?

12 replies
efalkner
@efalkner
Hello all, I've posted this a few times with no answer, sorry if this is a repeat :) ; I'm running into an error referencing an app name using webdriverio's latest version. The transitive dependency got is throwing a 500 server error on interpreting the app capability both for saucelabs and browserstack. This is blocking any progress in getting the automation going. Has anyone seen the same issue? I've also opened a webdriver issue.
WARN webdriver: Request failed with status 500 due to An unknown server-side error occurred while processing the command. Original error: The protocol 'storage:' used in 'storage:468f6cb9-cc19-4e29-bf0c-ed5264f0c4c6' is not supported. Only http: and https: protocols are supported
Larry Liu
@Justsolarry_twitter

Hey everone:

I am getting browser.leftClick is not a function when i am using it like this : browser.leftClick($('#image-stimuli-id'), 50, 50)

Alex Evans
@alexevans1988_gitlab

I have a similar problem with @Justsolarry_twitter
For the test I use https://github.com/webdriverio/jasmine-boilerplate, so in checkbox.spec.js ( https://github.com/webdriverio/jasmine-boilerplate/blob/master/test/specs/checkbox.spec.js ) I add this code

beforeAll(() =>{
        browser.setImplicitTimeout(11*1000)
    })

screenshot: https://prnt.sc/txsajd

And got this error in console:

[0-1] Error in ""before all" hook"
browser.setImplicitTimeout is not a function

Maybe someone knows why the error appears and how to solve it?

Larry Liu
@Justsolarry_twitter
@alexevans1988_gitlab Any luck? I'm using wdio and running my tests remotely on lambda tests. So i thought maybe i need to install webdriverio as a package but still no luck.
JustSittinHere
@JustSittinHere
Neither command is listed in the api https://webdriver.io/docs/api.html. .click and .setTimeout are though.
Seymourito Pattisson
@spattisson
I'm having trouble with a clickElement step which is failing with the checkifElementExists method of cucumber-boilerplate. It's failing with this but doesn't fail to click the element if I remove the checkifElementExists step. Can someone please help me understand if this is a failure in the framework code because I'm surely not expecting the { Object (sessionId, elementId, ...) } stuff but a number like 1! :
AssertionError: Element with selector ".govuk-button" should exist on the page: expected { Object (sessionId, elementId, ...) } to have property 'length' at _default (/home/node/support/lib/checkIfElementExists.js:30:47) at World._default (/home/node/support/action/clickElement.js:22:3) From previous event: at /home/node/node_modules/cucumber/lib/user_code_runner.js:90:42 at Generator.next (<anonymous>) at asyncGeneratorStep (/home/node/node_modules/cucumber/lib/user_code_runner.js:18:103) at _next (/home/node/node_modules/cucumber/lib/user_code_runner.js:20:194) at /home/node/node_modules/cucumber/lib/user_code_runner.js:20:364 at new Promise (<anonymous>) at /home/node/node_modules/cucumber/lib/user_code_runner.js:20:97 at Function.run (/home/node/node_modules/cucumber/lib/user_code_runner.js:109:7) at Object.<anonymous> (/home/node/node_modules/cucumber/lib/runtime/step_runner.js:59:54) at Generator.next (<anonymous>)
1 reply
aaronhall63
@aaronhall63
What is the use of @wdio/utils no documentation is provided?
Alex Evans
@alexevans1988_gitlab

Can someone help me with this issue, since I'm stuck...

I try to wait when the browser alert opens. So, I try to use this code

browser.waitUntil(
      () => browser.isAlertOpen(),
      {
        timeout: 5000,
        timeoutMsg: 'some text'
      }
    )

But I got this error: Error: waitUntil condition failed with the following reason: browser.isAlertOpen is not a function

Riain Condon
@Stetchy

Hey, not sure if anyone will have an answer to this but for using the Browserstack service to test Android/iOS devices, I'm getting some errors in the runner itself like:
The URL '/wd/hub/session/a561f04161f076d1eb5f64f192c9d41cd086e152/actions' did not map to a valid resource and in BrowserStack like: Appium error: An unknown server-side error occurred while processing the command. Original error: Potentially insecure feature 'get_server_logs' has not been enabled. have any of you come across this before?

My config is fine and had the following for the mobile devices:

const iOSCapabilities = {
    device: 'iPhone 11',
    os_version: '14',
    browserName: 'iPhone',
    ...mobileCapabilities
};

const androidCapabilities = {
    os_version: '10.0',
    device: 'OnePlus 8',
    browserName: 'Android',
    ...mobileCapabilities
};