For this we need to install the Junit plugin for Jenkins. As if we check the source template of the email-ext plugin as mentioned here, then we can find that for Junit report part, it’s fetching the values from Junit result. Then we need to call this in the pipeline as mentioned below, assuming we…
Category: Selenium
How to handle SSL certificate in Edge browser for Selenium Web-Driver?
In many cases we can face the error related to SSL certificate as mentioned below :- So, this error in Edge browser can be handled using EdgeOptions class provided by Selenium Web driver. The sample code block is mentioned below:- In the above code block we are accepting the Insecure certificate by passing Boolean value…
Demo Web Tables for Selenium Automation Practice
Demo Table 1 This table has 7 rows and 3 columns. So, the distribution of rows and columns even. We can assume this table as static table. Company Name Contact Country Google Maria Andreas France Microsoft Roland Mendel UK Island Trading Yoshi Tannamuri Canada Amazon Giovanni Rovelli Italy Meta Giovanni Rovelli Italy Google Francisco Chang…
How to copy or mirror code from one git repository to a new Git repository for Windows Machine
The steps are mentioned Below: Copy or clone the code to local folder from the Git repository: – For that first open the bash shell and move to the desires folder by using ‘cd’ command. And then type the below command and press enter. Here it is assumed that ‘ssh’ keygen is already generated and…
How to launch the chrome browser and open the target url using Selenium?
So for that at first we have to set the system property “webdriver.chrome.driver” and need to provide the path of the executable file of the chrome driver. The code block is mentioned below:- Now we can set the options of the chrome driver. This step is optional. Here we can set the execution mode of…
How to handle the Dynamic Google suggestions using Selenium
Many times we have to handle the suggestions in the search box dynamically. As shown below for the google search page. When typed “selenium” word, it’s showing so many suggestions:- Now if we want to select only “selenium interview questions” then how to do that? As these options appears dynamically, so by using fixed locator…
findElement method in Selenium WebDriver
To find any web element in any webpage this findElement method is used by Selenium WebDriver. This is an abstract method and defined under the SearchContext interface. as mentioned in the source code. But this SeachContext interface is also implemented by the SeleniumWebDriver interface as mentioned in here. As mentioned in the source code comment…
Selenium WebDriver is a class or interface?
The best way to answer this question is to check the source code of Selenium WebDriver. The source code can be found here. In that source code it is clearly mentioned that, the Selenium WebDriver is an interface. The clear and concise source code of selenium WebDriver interface is mentioned below:- import org.openqa.selenium.logging.LoggingPreferences; import org.openqa.selenium.logging.Logs;…
What is the use of getters and setters in java?
Getters and Setters are mainly used to hide the details about the fields of a class. Suppose we have a class, named Car. As we know, class in a blueprint of an object. So, the Car class is the blueprint of real object Car. Now Car object has engines and wheels. We are using only…