kandi X-RAY | CucumberBDDFramework Summary
kandi X-RAY | CucumberBDDFramework Summary
CucumberBDDFramework
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 CucumberBDDFramework
CucumberBDDFramework Key Features
CucumberBDDFramework Examples and Code Snippets
Community Discussions
Trending Discussions on CucumberBDDFramework
QUESTION
OS: Windows 10 Browser: Chrome Browser version: Version 73.0.3683.86 (Official Build) (32-bit)
I am running selenium cucumber BDD project where I am verifying title of one page. I am using extent-report version4. Project running successfully in local. But when i am running it through Jenkins, its failing while capturing screenshot and showing below error.
If i remove the surfire plugin from pom.xml then the TEST is not running via Jenkins.
In Execute Windows Batch command option of Jenkins i have given below command
...ANSWER
Answered 2019-Apr-03 at 05:47Seems you are using chromedriver=73.0.3683.68 and chrome=73.0.3683.86 on Windows OS
John Chen (Owner - chromedriver) recently have confirmed that:
UpdateWe have confirmed issues with take screenshot when Chrome 73.0.3686.75 is started by a service (such as Jenkins or Task scheduler) on Windows. Please see https://crbug.com/942023 for more details. We apologize for any inconvenience caused by this.
However, we haven't yet been able to observe similar issue on Linux, so we appreciate any help you can provide to enable us to reproduce the issue on Linux. We don't have access to TeamCity, but we have tested take screenshot using Docker image produced by Selenium (selenium/standalone-chrome:3.141.59-lithium), and didn't find any problems.
We were able to dig up the main issue. The main issue is not with ChromeDriver v73.x as such but with Chrome v73.x and John officially confirms it as:
SolutionThe root cause is indeed in Chrome 73.x, not in ChromeDriver. We are working with Chrome devs to find a solution.
The solution would be to:
- Downgrade Chrome Browser to Chrome v72.x
- Use a matching ChromeDriver among:
OutroNote: If you are using Chrome version 72, please download ChromeDriver 2.46 or ChromeDriver 72.0.3626.69
- Discussion: Page.captureScreenshot no longer works in Chrome 73 under Selenium as a Service on Windows
- Commit causing the issue: Set VizDisplayCompositor feature enabled on desktop platforms
- Merge: latency: Remove snapshots from LatencyInfo
- Download Google Chrome 72 Offline Installer For All Operating Systems
Adding the argument --disable-features=VizDisplayCompositor
through an instance of ChromeOptions()
seems solves the issue:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install CucumberBDDFramework
You can use CucumberBDDFramework like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the CucumberBDDFramework component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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