Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:01
    christian-bromann commented #8484
  • Jul 01 16:24
    Pandicool commented #8484
  • Jul 01 13:23
    christian-bromann closed #8484
  • Jul 01 13:23
    christian-bromann commented #8484
  • Jul 01 13:09
    razan45 commented #8481
  • Jul 01 11:05

    christian-bromann on v8

    bundle for ESM and CJS with tsup (compare)

  • Jul 01 09:47
    balualtimetrik commented #8484
  • Jul 01 09:46
    balualtimetrik commented #8484
  • Jul 01 09:41
    Pandicool labeled #8484
  • Jul 01 09:41
    Pandicool labeled #8484
  • Jul 01 09:41
    Pandicool opened #8484
  • Jul 01 07:40
    christian-bromann commented #521
  • Jul 01 07:33
    christian-bromann synchronize #8334
  • Jun 30 23:24
    andvalsol commented #521
  • Jun 30 21:47
    erwinheitzman commented #8482
  • Jun 30 18:16
    NIBOSAP commented #8334
  • Jun 30 18:16
    NIBOSAP edited #8334
  • Jun 30 18:14
    NIBOSAP synchronize #8334
  • Jun 30 18:12
    christian-bromann commented #8482
  • Jun 30 17:55
    erwinheitzman commented #8482
Gintautas Kazlauskas
@ploover
Hiya, from what I've read I understand that wdio has all of the JSON Wire protocol commands implemented, so why am I getting browser.getLocalStorage is not a function when I'm trying to call browser.getLocalStorage or browser.setLocalStorage
Erwin Heitzman
@erwinheitzman
@ploover the JSON Wire protocol is a old protocol that is no longer used by most browsers, hence the drivers listen to the newer Webdriver protocol instead
Lakshmi Kamineni
@skamineni
image.png
@erwinheitzman that ^
kblain1967
@kblain1967
I updated the following packages
"@wdio/allure-reporter": "^6.0.0",
"@wdio/browserstack-service": "^6.0.0",
"@wdio/cli": "^6.0.0",
"@wdio/local-runner": "^6.0.0",
"@wdio/logger": "^6.0.0",
"@wdio/mocha-framework": "^6.0.0",
"@wdio/reporter": "^6.0.0",
"@wdio/spec-reporter": "^6.0.0",
to v6 and I'm unable to create the sessions and get the errors: Hostname/IP does not match certificate's altnames: Host: localhost. is not in the cert's altnames...
1 reply
I did setup my services section:
image.png
kiranmai1202
@kiranmai1202
what is the webdriverio command to execute single test suite?
I tried this npm test -- --spec=login.js
This is giving me error
could someone pls suggest. Thq
when i am trying to execute the above command, window is hanging and not opening chrome instance
kblain1967
@kblain1967
should be `npm run test -- --spec <FULL PATH to spec >
Erwin Heitzman
@erwinheitzman
@kiranmai1202 that depends what you mean by suite but this should help you https://webdriver.io/docs/organizingsuites.html#run-suites-and-test-specs
kiranmai1202
@kiranmai1202
am running only one spec
Erwin Heitzman
@erwinheitzman
check the link
all the info is there
kiranmai1202
@kiranmai1202
sure, going through it
Erwin Heitzman
@erwinheitzman
IanHop
@IanHop
Does anyone else have issues setting cookies in safari? Its the only browser that seems to not work for me
manoj0516
@manoj0516
chromedriver not getting updated to 83.x.x, is there a way we can update through node?
Viacheslav
@Gordiievskyi

Hi guys, need help with wdio 6 mocha with opt delay. I can't make it work.

This code works in pure mocha:

var assert = require('assert');
async function returnArr() {
  return [2, 2, 1];
}

setTimeout(async function() {
  const arr = await returnArr();

  describe('my suite', function() {
    for (let el of arr) {
      it(`Is element ${el} has index 1`, async function() {
        assert.equal(arr.indexOf(el), 1);
      });
    }
  });

  run();
}, 500);

But skips it in wdio mocha 'Spec Files: 0 passed, 1 skipped, 1 total (100% completed) in 00:00:03 '

Thats set up for mocha frmaework in the config:

  mochaOpts: {
    ui: 'bdd',
    timeout: 3600000,
    delay: true
  },

Also synchronous version works in wdio(with deleted delay option)

function returnArr() {
  return [2, 2, 1];
}

const arr =  returnArr();

describe('my suite', function() {
  for (let el of arr) {
    it(`Is element ${el} has index 1`, async function() {
      assert.equal(arr.indexOf(el), 1);
    });
  }
});
mikelbauer
@mikelbauer
so, searching back in this gitter for my answer, I don't really find anything, lots of people asking, no one answering. is there not a way in v6 to scroll with an offset anymore? Is my only option to run an execute and use javascript?
3 replies
Mircea Rosioru
@MirceaRosioru_twitter
Hello guys! Quick question: is there a way to use the mocha afterHook to make a screenshot on browser's console? If it is what would be the best practice for this?
Christian Bromann
@christian-bromann
@MirceaRosioru_twitter I recommend to do screenshots in the afterTest hook of your wdio config
Mircea Rosioru
@MirceaRosioru_twitter
I configured the afterTest hook to take a screenshot, but i would like to capture the console of the browser in that screenshot as well, that is what i am trying to do.
Dmitry Munda
@dimkin-eu
why not to save console logs as text ???
Mircea Rosioru
@MirceaRosioru_twitter
well i did not know that this could be done. I tried this casue it seemed like a good ideea ( i am new to this) :D
image.png
Slava Markovski
@slavamarkovski

Hello. I've just started using WDIO - it is really cool. Thank you for the job you've done guys!
And, of course, I have a question - I'm extending browser commands and adding new ones, but Typescript compiler is not really happy. Here is example from the documentation

browser.overwriteCommand('click', function (origClickFunction, { force = false } = {}) { ... });
$('..').click({ force: true })
result is compile error Argument of type '{ force: boolean; }' is not assignable to parameter of type 'ClickOptions'

one more example:
browser.addCommand('isDisplayedAndBlurred', function () { ... });
$('..').isDisplayedAndBlurred()
result is "Property 'clickIfCollapsed' does not exist on type 'Element'."

with ts-ignore everything works like a charm. However there are still compile errors and autocomplete in IDE (WebStorm) doesn't work.
I there any way to fix it?
Thank you in advance.

krishna-auto
@krishna-auto

@krishna-auto there's a blog about that right here https://webdriver.io/blog/2019/06/25/file-upload.html

Hi @erwinheitzman , this worked for me on chrome, but its failing on headless chrome execution and as well as non-headless/headless mode in firefox, same failure "element is not interactable" error, In the above given link its given that "that is currently only supported when running Chrome", anyway to make it work on firefox && chrome headless? Thanks!

Hi, any idea how to make this work on firefox? Thanks!

Christian Bromann
@christian-bromann
@slavamarkovski if you overwrite or add custom commands you need to extend the type definitions yourself
I would not recommend overwriting commands and rather work with page objects
Roman Drobishevski
@romadrobishevski
@christian-bromann is it a known issue when you upgrade your wdio/cli to 6th or higher version
then there is a promise rejection error for uuid module appears? on Mac
Gintautas Kazlauskas
@ploover
browser.execute() doesn't seem to be functional, I was trying to set local storage, but after further testing I found that even things like console.log() or alert() don't work. Are there any prerequisites to use browser.execute()?
1 reply
Christian Bromann
@christian-bromann
@romadrobishevski please don’t ping people directly for requests and ask the channel (please see our channel rules ;-))
Roman Drobishevski
@romadrobishevski
Sorry. I've already asked about it. Nobody answered. But it is quite critical for Mac users i guess.
21 replies
I would like fully upgrade my package but can not do it because of that uuid promise issue
Anton Rybalko
@anton.rybalko_gitlab
image.png
@romadrobishevski
Mircea Rosioru
@MirceaRosioru_twitter
can anybody help me in finding a way to save the browser's console info using webdriverIO V6+ JS Mocha? any specific methods or commands, or documentation related with this?
12 replies
Roman Drobishevski
@romadrobishevski
image.png
Olga
@osmolyar
Friendly bump
Is anyone using ts-node with target=es6? Does anyone know why, with ts-node used as ts compiler, and target=es6 in tsconfig.json, class properties are not recognized? There is a reproducible example available here: https://github.com/osmolyar/Es6_properties_example . Run as 'npx wdio config.js --suite google'. Errors about 'property does not exist on type' occur for class properties that are definitely declared. (If target=es5 it works fine, but I'm not able to use that due to another error with a custom reporter.)
Lakshmi Kamineni
@skamineni
anyone seeing RequestError: socket hang up with V6 and how did you guys solve it ?
Craig232
@Craig232
Hi Guys
I'm experiencing a severe issue when running my webdriverio tests, im on a windows 10 laptop and for reasons unknown to me, I'm getting locked out of my jumpcloud account constantly, it makes no difference if I'm running chrome in the test headless or not Im still getting locked out has anyone had this issue and know how to fix?
Nemanja Jeremic
@nemanjajeremic
has anyone been using WebDriverIO with native android app? I'm having an issue where waitForDisplayed() timeouts even though the element gets displayed
3 replies
Olga
@osmolyar
@skamineni , are you running on a grid? If so, increasing the # of worker VMs can help.
Lakshmi Kamineni
@skamineni
I am running in saucelabs
3 replies
Olga
@osmolyar
@StaroKep if 'this' is not defined inside your step definitions, please make sure your step definitions are not using the arrow syntax for functions since arrow functions don't have a 'this'.
abhishek8791
@abhishek8791
Hey everyone, need suggestions
I want to parallelize my webdriver io tests, by parallelize I mean just reduce the execution time by running multiple instances of browser (no cross-browser) I have tried a couple of ways i.e.
1) Docker - running tests in multiple docker containers in parallel
2) Set up multiple Jenkins jobs with different params
not sure if any of the above approaches are good, any suggestions are welcome, looking for a discussion on the pros and cons
5 replies