wdio-cucumber-framework | WebdriverIO v4 plugin | Functional Testing library
kandi X-RAY | wdio-cucumber-framework Summary
kandi X-RAY | wdio-cucumber-framework Summary
A WebdriverIO v4 plugin. Adapter for Cucumber testing framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of wdio-cucumber-framework
wdio-cucumber-framework Key Features
wdio-cucumber-framework Examples and Code Snippets
Community Discussions
Trending Discussions on wdio-cucumber-framework
QUESTION
I have been working with wdio using JavaScript and Cucumber for our project.
Seems like chrome options doesn't seem to have any effect. Chrome browser doesn't start maximised.
...ANSWER
Answered 2020-Aug-03 at 09:14I think I figured out, why it doesn't work. I have followed the below steps to resolve. Hope it helps someone out there facing same issue.
- Performed
npx wdio config
- Answered the required questions
- When it comes to installing services, I chose
chromdriver
instead ofselenium-standalone
- Installed all the required packages which includes - (Guess you can install these separately as well, I just chose this route to perform)
QUESTION
I am using selenium to automate a mail verification process in a web application. I have a script already in place to login to gmail and read an activation mail received on the account. The script was perfectly working till yesterday but today I am facing a problem.
Additional Screenshot of issue
Gmail is not allowing sign in if the browser is launched with selenium. Says,
You're using a browser that Google doesn't recognize or that's setup in a way that we don't support.
- I have tried upgrading chromedriver version to 76.0.0 as I am using chrome version 76.0.3809.100(64 bit). (Previously used chromedriver 2.45) Still, the problem persists.
- Verified that this issue occurs even if I use Firefox instead of Chrome for automation.
- Verified that Javascript is enabled in the browser
- Gmail is not asking for any OTP or recovery mail. It is simply blocking my attempt to login via automation. However I am able to login to the same account manually.
Software used: "webdriverio": "^4.14.1", "wdio-cucumber-framework": "^2.2.8"
Any help is appreciated.
...ANSWER
Answered 2019-Aug-22 at 10:15You need to open your editor and copy this code and paste them and save with this name as email.py
and then open your terminal/cmd/powershell in that directory and type this python .\email.py
Note:
Make sure your chrome driver in that directory where you save python file
You need to copy this code and paste in your editor
Here is that script:
QUESTION
ANSWER
Answered 2020-Feb-12 at 20:37As per the below example config, the cucumberopts should be an object and I think you are trying to set it as an array.
Maybe you should follow this example which will help to understand config setup.
Cheers!
QUESTION
I would like to print the status of each cucumber scenario using the afterScenario hook.
I've tried printing out scenario.status (code below) but it prints out "undefined"
...ANSWER
Answered 2018-Oct-12 at 11:33Below should work- (tried with wdio-cucumber)
QUESTION
We're running wdio tests using wdio (both for local run & browserstack based devices)
When I run browserstack (server run) I am getting following error:
[11:41:04] COMMAND POST "/wd/hub/session" [11:41:04] DATA {"desiredCapabilities":{"javascriptEnabled":true,"locationContextEnabled":true,"handlesAlerts":true,"rotatable":true,"name":"Ping","build":"1.0","browserstack.debug":true,"device":"Samsung Galaxy S8","os_version":"7.0","requestOrigins":{"url":"http://webdriver.io","version":"4.14.2","name":"webdriverio"}}} ERROR: connect ECONNREFUSED 127.0.0.1:4444
My dependency stack We use yarn
...ANSWER
Answered 2019-Mar-04 at 22:33The error you're seeing is because wdio is trying to reach out to a WebDriver server on "127.0.0.1:4444", which is the default local server (i.e. not Browserstack).
This means you likely don't have your user/key set up in your wdio.conf.js
file. WebdriverIO relies on the user/key to determine what default server to use.
Check your config that both user
and key
are set. More info is available here:
http://v4.webdriver.io/guide/services/browserstack.html
QUESTION
I am using WebdriverIO/Cucumber (wdio-cucumber-framework
) for my test automation. I want to get the test execution result in a HTML file. As of now I am using Spec Reporter (wdio-spec-reporter
). Which helps to print the results in console window. But I want all the execution reports in a HTML file.
How can I get WebdriverIO test execution result in a HTML file?
Thanks.
...ANSWER
Answered 2019-Jan-08 at 11:57OK, finally got some spare time to tackle your question @Thangakumar D. WebdriverIO reporting is a vast subject (there are multiple ways to generate such a report), so I'll go ahead and start with my favorite reporter: Allure!
- [Preface: make sure you're in your project root]
- Install your package (if you haven't already):
npm install wdio-allure-reporter --save-dev
- Install Allure CommandLine (you'll see why later):
npm install -g allure-commandline --save-dev
- Setup your
wdio.config.js
file to support Allure as a reporter
wdio.config.js:
QUESTION
I am using wdio v4.12.0
and wdio-cucumber-framework
which is using cucumber v1.3.3
One of tests is ignored and only information in cmd output is that ignore reason: pending
. All previous and later steps are executed without error.
[field with default name is visible] Test ignored: field with default name is visible, ignore reason: pending
Feature file:
...ANSWER
Answered 2018-Apr-03 at 16:04I believe scenarios are marked as pending when Cucumber cannot find the underlying definition for one or more steps. In this case, it probably cannot find the step definition for "Then field with default name is visible" so check if you have implemented this definition.
QUESTION
This may be a long shot but I'm seeing the weirdest thing. I'm using the setValue
and addValue
functions from WebdriverIO and whenever my string contains the number 3
, it is being stripped out and not entered into the input boxes. I am manually able to type 3
into these inputs so I have no idea what is going on. 3
is the only character I've seen this happen with.
Any ideas?
Update: This is only occurring in Chrome
Update 2: Sorry for the lack of details. Here is additional info. I'm using wdio test runner. This issue does not occur in Safari or Firefox, only in chrome.
browser.setValue(usernameInput, "t3st")
will input "tst" into the usernameInput element. As well
browser.addValue(usernameInput, "t3st")
. Any string containing a 3 will be inputted to any element, but all 3's will be missing from the string.
package.json dependencies:
...ANSWER
Answered 2017-Nov-09 at 12:00Well, I had a look, but didn't manage to reproduce it. I tried both of the bellow examples using different variants of chromedriver
, or wdio-selenium-standalone-service
. All worked just fine.
My guess is that:
- maybe that input you're trying to fill in has some
JavaScript
logic behind (form-validation) which might be truncating digits; - or, maybe you have some old software (outdated packages) from your
package.json
dependencies which you previously installed globally (npm install -g
) and forgot about;
WebdriverIO (v4.8.0
):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install wdio-cucumber-framework
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page