Good test reports are a fundamental component of successful test automation. But running down a test failure by looking at a test report can be a real pain sometimes. By leveraging something like jQuery Growl you can output … Read More
How To Press Keyboard Keys in Selenium
On occasion, you’ll come across functionality that requires the use of keyboard key presses in your tests. Perhaps you’ll need to tab to traverse from one portion of the page to another, back out of … Read More
How to update Cloud JIRA X-RAY test execution automatically using REST API Java?
Updating JIRA Xray test status and evidence using any programming is simple as we have RestAPI. Below are the two examples to update the status and evidence. This example is can be used if your … Read More
How to Upload Files using Selenium
Uploading a file is a common piece of functionality found on the web. But when trying to automate it you get prompted with a dialogue box that is just out of reach for Selenium. In these … Read More
How to install TestNG in Eclipse?
Click on the Help and then Eclipse Marketplace. A new window would open, wherein you need to type “TestNG” in the Find text box and click on the Go button. You will now see the search results with … Read More
How to install a chrome driver in Mac OS?
Below are steps you need to follow to install chrome driver in Mac Command to install chrome driver using npm command It will install chrome driver in /Users/<username>/node_modules/chromedriver/lib/chromedriver/chromedriver and you need to specify this path … Read More
How to install selenium webdriver on Mac OS?
Below are the steps you need to follow to install the selenium web driver on Mac, Open terminal and enter following commands Check whether you have pip and python installed on your machine using below … Read More
Useful Test Automation Regex
To get only number from the string \d+ To get just amount value ([0-9]+[\\.,0-9]*) To get first 5 characters from a string ^.{5} To get the text of btw two strings (?<=Reference is )(.*)(?= and)
How to Create Java Method?
Method is collection of code which run only when it’s called.Method also called as Functions. Method syntax: Type of methods Method without return type Method with return type Method with parameters Static methods
How to fix java.lang.IllegalStateException: The driver is not executable issue?
If you are trying to run automation script on Mac chrome browser, first you have to chromedriver as executable file. To make chromedriver as executable file you have to use below command in Mac terminal. … Read More