Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 18:06
    christian-bromann closed #7435
  • 18:06
    christian-bromann commented #7435
  • 13:12
    EINBOX opened #7435
  • 12:39
    EINBOX commented #7423
  • 05:25
    wswebcreation commented #6538
  • Sep 17 11:01
    christian-bromann labeled #5505
  • Sep 17 11:01
    jayandran-Sampath commented #6538
  • Sep 17 10:54
    wswebcreation commented #6538
  • Sep 17 10:48
    jayandran-Sampath commented #6538
  • Sep 17 10:47
    jayandran-Sampath commented #6538
  • Sep 17 08:34
    oldmankit commented #7434
  • Sep 17 08:31
    christian-bromann commented #7433
  • Sep 17 08:29
    christian-bromann commented #7019
  • Sep 17 08:24
    christian-bromann commented #7423
  • Sep 17 08:22
    christian-bromann commented #7434
  • Sep 17 08:22
    christian-bromann closed #7434
  • Sep 17 08:22

    christian-bromann on main

    fix docs closes #7434 (compare)

  • Sep 17 05:22
    darkartswizard commented #4482
  • Sep 17 05:22
    darkartswizard commented #4482
  • Sep 17 01:58
    oldmankit opened #7434
StevenRobinMason
@StevenRobinMason
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!
James
@jamesmortensen

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

@sureshneni The code which you use to communicate with the browser to login can go in a page object. The same page object can then be reused by any spec that needs to first login. For example:

it('should check for new messages for the user', () => {
    loginPage.doLogin(username, password);

    // do the rest of the steps here for the test
});

In this example, you're reusing the code by putting it in a method that can be called repeatedly, so no duplicate code. Hope this helps.

sureshneni
@sureshneni
@jamesmortensen got it, thank you
Iqra Dilawar
@iqra-dilawar
@christian-bromann Hi, I wanted to know that can we automate kafka callbacks? Where we are not sure when will we receive response. If yes, what can be the way
4 replies
Jverrijk
@Jverrijk
image.png
I'm having trouble selecting a dynamically generated frame within a front-end checkout test. It consists of multiple frames where client information must be filled in. All goes well except the final one. I've tried so many things. In the inspector of Chrome you can see a #document is created in an iFrame, I'm unable to add a value to id="addressCollector-date_of_birth". Webdriver keeps telling me the frame doesn't exist.
Raziel Alron
@razielron
Coder123
@Coder123-Sai
Hiii
I am trying to login to GMAIL using WebdriverIO, but getting error
This browser or app may not be secure.
Can any one please help how to bypass this error?