Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:47
    SCG82 synchronize #9623
  • 13:47

    SCG82 on replace-lerna-bootstrap-pnpm

    Bump @types/eslint from 8.4.10 … Bump @vitejs/plugin-react from … Bump devtools-protocol from 0.0… and 4 more (compare)

  • 12:11
    szarlatan opened #9730
  • 08:35
    valfirst commented #9727
  • 02:26
    jan-molak commented #9729
  • 02:08
    christian-bromann labeled #9729
  • 02:08
    christian-bromann unlabeled #9729
  • 02:08
    christian-bromann edited #9729
  • 02:07
    christian-bromann commented #9729
  • 02:00
    jan-molak edited #9729
  • 01:58
    jan-molak edited #9729
  • 01:39
    jan-molak labeled #9729
  • 01:39
    jan-molak labeled #9729
  • 01:39
    jan-molak opened #9729
  • Feb 07 20:25
    BorisOsipov commented #9704
  • Feb 07 20:22

    christian-bromann on v7

    Use available Cucumber tag `fea… (compare)

  • Feb 07 20:22
    christian-bromann closed #9727
  • Feb 07 20:22
    christian-bromann labeled #9727
  • Feb 07 19:20
    valfirst opened #9727
  • Feb 07 17:36

    christian-bromann on main

    Use available Cucumber tag `fea… (compare)

Erwin Heitzman
@erwinheitzman
that's a very generic question, if you have a specific question I suggest asking that instead
Federico Francia
@federicoitaly:matrix.org
[m]
@erwinheitzman: thanks, currently I use wdio with maxInstances: 1, so it runs features sequentially
since ios tests takes long time I am wondering to run test in parallel on different devices
my worry is related to the external report
i create a json for the cucumberjs report
it works for single thread
but I increase maxInstances let's say to 2
what will happen?
Erwin Heitzman
@erwinheitzman
I think that depends on the reporter
but you'd probably get two json files
Federico Francia
@federicoitaly:matrix.org
[m]
import cucumberJson from "wdio-cucumberjs-json-reporter";
Erwin Heitzman
@erwinheitzman
however, running it once and see what happens would have been faster and more reliable then to ask here :P
Federico Francia
@federicoitaly:matrix.org
[m]
import { generate } from "multiple-cucumber-html-reporter";
1 reply
Erwin Heitzman
@erwinheitzman
I have never used that reporter myself so I don't really know how it generates files
Federico Francia
@federicoitaly:matrix.org
[m]
Davide Mariani
@davide.mariani:matrix.org
[m]
Hi there!
Kirstin Walsh
@pyxis828
For someone still stuck on version 5, is there somewhere where I can find docs on the hooks as they were in that version? I know they have different params, and I can't seem to find reference docs now - the site will only take me to the version 7 docs for the hooks.
Erwin Heitzman
@erwinheitzman
Kirstin Walsh
@pyxis828
I have tried that - not helpful
Erwin Heitzman
@erwinheitzman
how is it not helpful? we have documentation for al versions back to v4
Kirstin Walsh
@pyxis828
the hook documentation doesn't seem to be there - at least I can't find it
that's v4 sorry
Kirstin Walsh
@pyxis828
might be good though - I'll try it
Erwin Heitzman
@erwinheitzman
all info should be available
Kirstin Walsh
@pyxis828
just gives a list of what hooks are available, no params
Federico Francia
@federicoitaly:matrix.org
[m]
thanks @dmarimoutou
I try to ask my question there
Erwin Heitzman
@erwinheitzman
@pyxis828 the documentation keeps updating, I suggest to take the latest documentation in cases where you feel you are missing some details
Clive Galway
@evilC
Hi, could anyone advise how I would use multiremote with wdio/cucumber-framework? To be more specific I am trying to do automated testing of a chat-type application (ie two browsers open, one for each side of a conversation)
Kirstin Walsh
@pyxis828
@erwinheitzman I appreciate your suggestion, but I know for a fact that the params were changed in version 7, and do NOT match what was there in v5 - it was a huge problem for me and 1 of the main reasons I have not yet updated to V7 (along with some other sync/async errors that I have occurring), along with the fact that I have 0 time to work on the upgrade. And now I am going to add another before hook to throw some more confusion into the mix for the future upgrade, lol
Federico Francia
@federicoitaly:matrix.org
[m]
Clive Galway
@evilC
@federicoitaly:matrix.org Yes, I see that, but I am rather new to wdio/cucumber and have no idea how to do that in cucumber-framework
Federico Francia
@federicoitaly:matrix.org
[m]
ok, maybe there is a boilerplate with multiremote
Clive Galway
@evilC
in cucumber, you don't seem to have control over newing up of the browser object?
Christian Bromann
@christian-bromann
@evilC just define multiremote capabilities in your wdio conf that uses cucumber
there is nothing special about it
Clive Galway
@evilC
Yeah I saw the cucumber boilerplate and it purports to implement multiremote but I can't find anywhere it uses it
Christian Bromann
@christian-bromann
the webdriverio cucumber boilerplate doesn’t use multiremote
but to do so just modify the capabilities in your wdio.conf
Erwin Heitzman
@erwinheitzman
@pyxis828 in that case, just console.log the arguments ^^;
Michael Norton
@RevNight
Can anyone here help me with the syntax for WaitUntil()? I tried several ways to get the Function() typed properly, but it still isn't working
Clive Galway
@evilC

Yeah I had a stab at that but got nowhere unfortunately.
Currently I have

  capabilities: [
    {
      // maxInstances can get overwritten per capability. So if you have an in-house Selenium
      // grid with only 5 firefox instances available you can make sure that not more than
      // 5 instances get started at a time.
      maxInstances: 5,
      //
      "goog:chromeOptions": {
        args: ["use-fake-ui-for-media-stream"],
      },
      browserName: "chrome",
      acceptInsecureCerts: true,
      // If outputDir is provided WebdriverIO can capture driver session logs
      // it is possible to configure which logTypes to include/exclude.
      // excludeDriverLogs: ['*'], // pass '*' to exclude all driver session logs
      // excludeDriverLogs: ['bugreport', 'server'],
    },
  ],

And I tried putting in what appeared to be along the lines of what I wanted

    capabilities: {
        browserA: {
            capabilities: {
                browserName: 'chrome',
            }
        },
        browserB: {
            capabilities: {
                browserName: 'chrome'
            }
        }
    },

But then everything stopped working, never even seemed to get the the point in my tests where I would normally execute browser.url(foo)

Christian Bromann
@christian-bromann
Yes because all step definitions don’t support multiremote because every result is now an array
you have to define your own step definitions
Clive Galway
@evilC
ERROR @wdio/cli:utils: A service failed in the 'onPrepare' hook
Right, but existingly, the first executed step goes something like
Given(/^I am logged in as an agent/, () => {
  pages["login"].open();
Which would execute
class Page {
  static open(path) {
    if (path === "login") {
      return browser.url(awsUrl);