Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 08:34
    oldmankit commented #7434
  • 08:31
    christian-bromann commented #7433
  • 08:29
    christian-bromann commented #7019
  • 08:24
    christian-bromann commented #7423
  • 08:22
    christian-bromann commented #7434
  • 08:22
    christian-bromann closed #7434
  • 08:22

    christian-bromann on main

    fix docs closes #7434 (compare)

  • 05:22
    darkartswizard commented #4482
  • 05:22
    darkartswizard commented #4482
  • 01:58
    oldmankit opened #7434
  • Sep 16 17:41
    EINBOX commented #7423
  • Sep 16 15:09
    tobeliketree commented #7019
  • Sep 16 14:30
    wswebcreation commented #7423
  • Sep 16 13:30
    JordiSAGE opened #7433
  • Sep 16 12:07
    EINBOX commented #7423
  • Sep 16 12:06
    EINBOX commented #7423
  • Sep 16 11:52
    WilcoFiers commented #7432
  • Sep 16 11:25
    EINBOX commented #7423
  • Sep 16 11:15
    EINBOX commented #7423
  • Sep 16 10:05
    EINBOX commented #7423
oioi11
@oioi11
what should I do?
image.png
image.png
Refael Mah
@PrinceEX87_twitter
Hi, I've started to use the Re-run Service with mocha and it works great. But I've noticed that it rerun skipped tests also, is it the expected behavior?
Erwin Heitzman
@erwinheitzman
@oioi11 that should work I think, what happens if you add a waitForExist before clicking the element?
2 replies
Erwin Heitzman
@erwinheitzman
@PrinceEX87_twitter I believe this service was created before we supported those cases, by now I think everything is supported natively. checkout https://webdriver.io/docs/retry/ and try without the service I'd say
Asalem
@Amrkamel1
can I exclude a specific suite (mocha) of feature files (Cucumber) in the before hook in the config file?
filip-svrcek-CN
@filip-svrcek-CN
@Amrkamel1 I don't think you can exlude a suite. You can exclude spec file by spec file
5 replies
StevenRobinMason
@StevenRobinMason

anyone having issues running the install command for a new instance of WDIO

ran npm install wdio/cli and appears to be stuck on

reify:core-js-pure: timing reifyNode:node_modules/lodash Completed in 12207ms

and I cant seem to close the powershell window it is running from (this is like the third attempt to run the install command =/
sureshneni
@sureshneni

Hi Team, I have used below block to run my multiple specs in sequential order but browser gettitng open twice at same times, please let me know how to fix it.

@sureshneni login.spec.js should contain all of your tests to test that login works. For instance, what happens if you enter valid credentials. What about an empty password, what about empty username?

However, openNewAccount.spec.js isn't testing login, but perhaps it requires you to be logged in first. If that's the case, you can make the spec files independent of one another. Make sure openNewAccount.spec.js doesn't depend on login.spec.js. Hope this helps.

@jamesmortensen got it, thank you

filip-svrcek-CN
@filip-svrcek-CN
Is there a way to skip the rest of the test (specFile) after one it block fails and continue with another specFile? Thanks
Erwin Heitzman
@erwinheitzman
@StevenRobinMason it's npm i @wdio/cli
@filip-svrcek-CN not that I know of
Mircea Rosioru
@MirceaRosioru_twitter
hello guys! Can someone help me with some way of running my wdio v7, selenium-standalone tests on Safari? is this possible? I am using a WINDOWS machine.
Christian Bromann
@christian-bromann
@MirceaRosioru_twitter Safari only runs on Mac, so no
Christoph Herold
@coeamyd
Is there a way to get the console output from Chrome using the current webdriver.io? I've found various articles complaining, that the api was changed from 4 to 5 to 6. However, none of them said, what the current mechanism is. For me, it would be enough, if it works for Chrome only.
StevenRobinMason
@StevenRobinMason
image.png
@erwinheitzman the other command works which was npm install @wdio/cli as it does start to install. it just appears to get stuck at this particular big and can't even close the powershell window it is running from
Olga
@osmolyar
Is anyone seeing this?
[0-24] 2021-04-19T13:23:42.820Z ERROR @wdio/local-runner: Failed launching test session: Error: Couldn't initialise "@wdio/cucumber-framework".
Error: Cannot find module '@cucumber/messages/dist/src/stream'
Require stack:
- C:\osmolyar_qdtools\iris\latest\ManagementPortal\node_modules\@wdio\cucumber-framework\node_modules\@cucumber\gherkin\dist\src\stream\GherkinStreams.js
Christian Bromann
@christian-bromann
@osmolyar I thought this got fixed: webdriverio/webdriverio#6616
Olga
@osmolyar
ah yeah. Had to run npm install now, for some reason
Erwin Heitzman
@erwinheitzman
@StevenRobinMason have you tried Git Bash or the more up to date Windows Terminal?
would recommend WSL on Windows anyway
kailin0512
@kailin0512
@christian-bromann Hello! I want to check if there is a support jest framework for wdio (in addition to mocha, jasmine and cucumber) in the roadmap? If not, do you think I can contribute the jest framework support followed the pattern in mocha or other framework under packages?
Christian Bromann
@christian-bromann
@kailin0512 which feature does Jest provide that you don’t have with e.g. Mocha?
3 replies
nonamecze
@nonamecze:matrix.org
[m]
hi, im currently having trouble with this error
can someone help me please?
sureshneni
@sureshneni

image.png
image.png

@nonamecze:matrix.org use require to import page file to spec class like shown below

const loginPage = require('../pageobjects/login.po')
Christian Bromann
@christian-bromann
or integrate Babel https://webdriver.io/docs/babel
1 reply
Ghost
@ghost~607dccd16da03739847a82b3
Hello everyone! Pls, help me! I'm newbee in js and WebdriverIO!
In some test I have to use chrome extension, but I don't know how to start browser with my extension. I try to add path to extension in wdio.conf.js like
'goog:chromeOptions' : {
args: [ "--load-extension=e2e/path/to/extension.crx"]
}
but there was no extension in browser.
Guna Reddiar
@sreddiar
Hello Everyone, Had a question about ios & Android Automation, if we are using the same Page Object class, what is the best way to define ios and android locators with the same variable name, to make the code more reusable
Christian Bromann
@christian-bromann
@sreddiar every getter can check an environment variable/flag and use a locator for iOS or for Android depending on its result
sureshneni
@sureshneni

Hi Team, I have used below block to run my multiple specs in sequential order but browser gettitng open twice at same times, please let me know how to fix it.

@sureshneni login.spec.js should contain all of your tests to test that login works. For instance, what happens if you enter valid credentials. What about an empty password, what about empty username?

However, openNewAccount.spec.js isn't testing login, but perhaps it requires you to be logged in first. If that's the case, you can make the spec files independent of one another. Make sure openNewAccount.spec.js doesn't depend on login.spec.js. Hope this helps.

@jamesmortensen got it, thank you

@jamesmortensen so login is common for all my specs, so do I need to keep login login in all my sepc files, if yes code is duplicate rt? what would be the better way

Henrik Andersson
@perhenrikandersson
Is it possible to make a test not run in parallel? I usually run all my tests in parallel using suites but I have one test that can interfere with other tests so I would like to make sure this test don't run at the same time as other tests.
Christian Bromann
@christian-bromann
16 replies
nekkantisandeep
@nekkantisandeep
HI ALL, we don't know how to use browser.mock() exactly could anyone please provide suggestion , ex: I want to change the status of 200 as 500 service unavailable for "https://www.google.com/" , we tried by visiting the "https://webdriver.io/docs/mocksandspies/" but didn't work any help will be appreciable
exampleCode: const strictMock = browser.mock('https://www.google.com/', {
statusCode: 500
})
Erwin Heitzman
@erwinheitzman
@nekkantisandeep maybe add the method and a response
const mock = browser.mock('https://todo-backend-express-knex.herokuapp.com/', {
    method: 'get'
})

mock.respond([
  {
    statusCode: 500
   }
])
1 reply
something like that
Christoph Herold
@coeamyd
Any ideas on getting the console messages from Chrome?
Erwin Heitzman
@erwinheitzman
@coeamyd setting the outputDir probably does what you need
23 replies
Christoph Herold
@coeamyd
@erwinheitzman Thanks, I'll try it out.
kevin-longmate
@kevin-longmate
Got a weird problem trying to upgrade the webdriver 7.4.6 - in my wdio.conf.ts I'm getting a Cannot find namespace 'WebdriverIO'. message in the terminal 'problems' section, along with several others like Cannot find name 'browser' however when I open /node_modules/webdriverio/sync.d.ts in visual studio the errors disappear
1 reply
anyone know why that might be? Seems like it's ignoring that file unless I have it open in the editor
Christian Bromann
@christian-bromann
@kevin-longmate from which version did you update? if you use vscode, have you tried restarting it? That usually solves it for me
kevin-longmate
@kevin-longmate
@christian-bromann I'm going from 6.4.0 to 7.4.6, have tried restarting VS code as well as the computer, no luck with either unfortunately!