Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:35
    kopax-polyconseil commented #4767
  • 11:32
    dependabot[bot] labeled #9248
  • 11:32
    dependabot[bot] labeled #9248
  • 11:32
    dependabot[bot] opened #9248
  • 11:32

    dependabot[bot] on npm_and_yarn

    Bump aws-sdk from 2.1261.0 to 2… (compare)

  • 11:22
    dependabot[bot] labeled #9247
  • 11:22
    dependabot[bot] labeled #9247
  • 11:22
    dependabot[bot] opened #9247
  • 11:22

    dependabot[bot] on npm_and_yarn

    Bump eslint-plugin-unicorn from… (compare)

  • 11:14
    dependabot[bot] labeled #9246
  • 11:14
    dependabot[bot] labeled #9246
  • 11:14
    dependabot[bot] opened #9246
  • 11:14

    dependabot[bot] on npm_and_yarn

    Bump aws-sdk from 2.1261.0 to 2… (compare)

  • 06:20
    linux-foundation-easycla[bot] commented #9124
  • 06:20
    nagpalkaran95 synchronize #9124
  • 06:18
    linux-foundation-easycla[bot] commented #9124
  • 06:18
    nagpalkaran95 synchronize #9124
  • 05:16

    christian-bromann on main

    run tests in CI headless (compare)

  • 04:44

    christian-bromann on main

    make @wdio/globals working in C… (compare)

  • Nov 27 18:42
    bhanuagarwal73 commented #9107
Arjan Blok
@ablok
I seem to have issues with typings. If I try to do a getLocation() on an element, it wants me to pass an argument. Even though it should be optional.
2 replies
tv2022
@tv2022
Hi..is there any browser IdleTimeout in WebdriverIO. Currently, if the browser is idle for more than 5 min my test is getting terminated. In Protractor we had idelTimeOut to control this.
Christian Bromann
@christian-bromann
rajivnw
@rajivnw
Hi, is there way to update feature name (Feature : some name)
at runtime I would like to append platform name i.e. Android or iOS with feature name so it not duplicate when run in parallel on both platform. I except Feature name should display in report like "some name Android". I tried to update using beforeScenario. I can get name and can update the property world.pickle.name but updated name is not displaying in Allure report.
4 replies
tv2022
@tv2022
@christian-bromann I checked this one,but there is no option for browser idleTimeOut. We do need to setup some data in test case wich takes more than 5 min and is timing out after 5 min.
5 replies
3letsing7
@3letsing7

Hi,,,After starting the Safari browser on AWS DeviceFarm, I'm having trouble going from the tab selection screen to the normal browser screen. Neither switchWindow() nor switchToWindow works. Is there a better way?

The environment is iOS15.X or iOS16.X.

Valiantsin Lutchanka
@Valiantsin2021
Hi, i see the documentation about the docker integration is not complete, at least dockerfile example is not working with the actual version of WDIO. Can i make a request to update the docker related info in docs section? I can provide wirking example of dockerfile.
1 reply
Serhii
@sergeiipo:matrix.org
[m]
Hello, can you tell me if I can find a certain word in the text on the page? Tried like this:
const textConst = await ($('*').toHaveText('word'))
but since there is not only word in the string, the test fails
1 reply
Valiantsin Lutchanka
@Valiantsin2021
Serhii - try to use toHaveTextContaining instead of toHaveText
2 replies
Serhii
@sergeiipo:matrix.org
[m]
Tell me how to set the condition not !=, I need the test to fail if it finds a word
const textConst = await $('*')
await expect(textConst).toHaveTextContaining(['Word', 'word'])
1 reply
Ross Addinall
@RossVertizan
Is there a beta release of the upcoming v8?
2 replies
Paul Grossman
@darkartswizard
image.png
5 replies
I belive I can confirm the TypeScript install option of WDIO path and filename is janky.
Dimitri Kopriwa
@kopax-polyconseil
Hello, I am reading https://webdriver.io/docs/selectors/#accessibility-id , and I am able doing $('~MyButton') to click on my button on iOS and Android, can the Accesibility ID selector work also on the Web ? If so, what attribute should I use on my element as I don't think web use an accessibilityId attribute. Thanks !
isonlaxman
@isonlaxman
hey guys i have a quick question: do I need to run chromedriver separately in another terminal? I'm trying to find a way where I don't need to run the command separately but can just start the chromedriver through code
my script works when i run chromedriver in another tab on the specified port, but i want the code itself to boot it up, that would be ideal
Christian Bromann
@christian-bromann
@isonlaxman if you use the testrunner with the chromedriver service, everything happens in the same process
isonlaxman
@isonlaxman
i did read about that, i also want to avoid the testrunner because im using webdriverio as a standalone automation script
the only other way i found online was using the npm package
for chromedriver. is that the only way?
LarryG
@larryg01
@isonlaxman if you are using it in standalone mode like i do you have to tie to driver to you start process in a before hook
checkout https://github.com/larryg01/klassi-js
look at the runtime folder for the implementation of same
isonlaxman
@isonlaxman
could i get an example of that? i haven't looked into hooks yet
okay let m check thank you
riyaasel
@riyaasel:matrix.org
[m]
Hi All, I am trying to select option based on text from dropdown. Using above logic, but the option is not clicked
2 replies
riyaasel
@riyaasel:matrix.org
[m]
:point_up: Edit: Hi All, I am facing two issues for a scenario trying to select option based on text, from dropdown list and verify if the option is selected. Using above logic, but the option is not filtered based on the text I passed as argument. I also notice that the verify method is executed before the filter method in my test making my test fail.
malluri
@malluri
Hi, is there any way to automate toast messages in mobile application using webdriverio+appium
Christian Bromann
@christian-bromann
sure, grab the toast element and read the content I guess, there is nothing special to it
(no I don’t have an example)
Sunil Kumar
@KumarSunil20
Can I get a link for v7 Webdriverio-cucumber boilerplate project? Appreciate your help
5 replies
Dimitri Kopriwa
@kopax-polyconseil
Can $('~MyButton') accessibility ID selector be used for DOM(Web) ?
5 replies
Sushant Soni
@sushantsoni5392
Hello,
What could be the reason for this error message Ended WebDriver sessions gracefully after a SIGINT signal was received
Muruganantham S
@Muruganantham1612
Hello, can we able to automate and click save on the save as file after clicking export from my web application
2 replies
Dimitri Kopriwa
@kopax-polyconseil
We have a isAndroid, isIOS within the driver, do we have an equivalent for web ? or should we use isWeb = !isAndroid && !isIOS ?
14 replies
Kiran kumar
@kiranctkec_twitter
Hi All,how we can run all feature in same browser session without closing browser for each feature session.
10 replies
riyaasel
@riyaasel:matrix.org
[m]
Thank you @therealbrad .This 'Element with certain text' selector worked. I parameterized and selected different options from dropdown. I am wondering why the filter is not working? I have gone through some youTube tutorials and implemented the filter logic.
Dimitri Kopriwa
@kopax-polyconseil
Hello, I am reading : https://webdriver.io/docs/selectors/ I have some difficulties to understand what else than accessibility id can be used for native app testing. XPath, custom iOS/Android and ? can we select by text with $('=text') or anything else ?
3 replies
Dimitri Kopriwa
@kopax-polyconseil
I have a cookie consent that take the whole screen, if accepted or refused, it disappear. Since I do not switch off the emulator between test, I need to accept it only once, then next test will also need to if open accept it. I use beforeEach in my test to always pass the first launch screens, but waitForDisplayed will crash if not displayed, how can I wait for displayed, and if not displayed, continue the test and not fail ?
3 replies
malindapw
@malindapw

Hi team, we are trying to integrate Allure Reports and following these steps , https://webdriver.io/docs/allure-reporter/
After installing the 'allure-commandline' with following command
npm i allure-commandline ,
I am getting a warning \errorMatches a schema that is not allowed. Any idea why we are getting this ? Thanks

image.png

3 replies
ydmamata
@ydmamata
Hi Team, can we use webdriverio for complete e2e API automation testing? if yes could you please let me know how to declare capabilities in wdio.conf.ts ?
Dimitri Kopriwa
@kopax-polyconseil
driver.logEvent is not a function in the scope of a firefox or chrome browser test, is this expected ? It work well with appium
4 replies
Dimitri Kopriwa
@kopax-polyconseil

Is there a way to create a custom selector so I don't need to import it ?

function selector(selector: string) {
  return $(flags.isWeb ? `[data-testid="${selector}"]` : `~${selector}`)
}

This is the implementation of the custom selector

vaibhav
@VaibhavBarmkar_twitter
Hi, I want to check if we can get the type of cucumber scenario whether its normal or the scenario outline from wdio reporter while implementing the custom reporter via extending WDIOreporter. I can see below information but its not stating whether its scenario outline or not.
2 replies
Christian Bromann
@christian-bromann
10 replies
Dimitri Kopriwa
@kopax-polyconseil
Hello, I would like to know if accessibilityLabel in react native is the accessibility Id, or is it testID ? Since I removed the accessibilityLabel my selector that use accessibility id does not work anymore. I am almost sure accessibility id is mapped to test id
1 reply
talbss
@talbss

Hello All,

I am trying to perform a selection on a canvas using performActions without any success.

Any clue please?

let canvasElementLocation = await canvasElement.getLocation();

        let clickActions = [{
            type: "pointer",
            id: "mouseLeftClick",
            parameters: { pointerType: "mouse" },
            actions: [
                { type: "pointerMove", origin: 'viewport', duration: 50, x: Math.round(canvasElementLocation.x), y: Math.round(canvasElementLocation.y) },
                { type: "pointerMove", origin: 'pointer', duration: 50, x: 15, y: 20},
                { type: "pointerDown", button: 0 },
                { type: "pause", duration: 500 },
                { type: "pointerMove", origin: 'pointer', duration: 50, x: 100, y: 100 },
                { type: "pause", duration: 500 },
                { type: "pointerUp", button: 0 },
                { type: "pause", duration: 500 }
            ]
        }];

        await browser.performActions(clickActions);
        await browser.releaseActions();
2 replies
rembeckyb
@rembeckyb_twitter

Seems that "capability-defined spec patterns" no longer work for v7 when running a suite. My caps:

  {
    platformName: 'Windows 11',
    browserName: 'chrome',
    browserVersion: 'latest',
    'sauce:options': {
      screenResolution: '1280x960',
      build: 'WDIO',
      maxDuration: '10800',
      extendedDebugging: true,
      prerun: {}
    },
    specs: [
        './tests/version.js'
    ]
  },
  {
    platformName: 'Windows 11',
    browserName: 'firefox',
    browserVersion: 'latest',
    'sauce:options': {
      screenResolution: '1280x960',
      build: 'WDIO',
      maxDuration: '10800',
      extendedDebugging: true,
      prerun: {}
    }
  }

I then run:

wdio wdio.conf.js --suite Regression

But instead of having the Chrome capability run only version.js, it instead runs all tests from the Regression suite. (The Firefox capability only runs the Regression suite as expected). How can I have the Chrome capability only run the version.js test while the Firefox capability runs the Regression suite?

Viridian-Kailin
@Viridian-Kailin

There is no documentation on handling the snapshot settings in the appium service. Does wdio/appium-service not support updating those settings? For some reason, the following code expands the snapshot depth:

  capabilities: [{
    platformName: "iOS",
    "appium:deviceName": "iPhone 13",
    "appium:platformVersion": "15.5",
    "appium:automationName": "XCUITest",
    "appium:settings[snapshotMaxDepth]": 100,
    "appium:settings[customSnapshotTimeout]": 30
  }],

While the following does not:

  capabilities: [{
    platformName: "iOS",
    deviceName: "iPhone 13",
    platformVersion: "15.5",
    automationName: "XCUITest",
  }],
  services: [
    ['appium', {
      settings: {
         customSnapshotTimeout: 30,
         snapshotMaxDepth: 100
       },
       args: {}
    }]
  ],

Nor does:

  capabilities: [{
    platformName: "iOS",
    deviceName: "iPhone 13",
    platformVersion: "15.5",
    automationName: "XCUITest",
  }],
  services: [
    ['appium', {
       customSnapshotTimeout: 30,
       snapshotMaxDepth: 100,
       args: {}
    }]
  ],

Or:

  capabilities: [{
    platformName: "iOS",
    deviceName: "iPhone 13",
    platformVersion: "15.5",
    automationName: "XCUITest",
  }],
  services: [
    ['appium', {
       "settings[customSnapshotTimeout]": 30,
       "settings[snapshotMaxDepth]": 100,
       args: {}
    }]
  ],
1 reply
Christian Bromann
@christian-bromann
Where has Appium defined these settings?