System setproperty in selenium

What is System.setProperty? If you have noticed in selenium test case, You will find syntax System.setProperty. System is class name and setProperty(String key, String value) is method of System class in java. setProperty method accepts two parameters key and its value. Why to use System.setProperty in selenium test case? For running your selenium test, You need browser i.e. chrome, firefox, … Read more

First selenium test case in eclipse

First selenium test case in eclipse You are ready to write your first selenium test case in eclipse after installation and selenium configuration in eclipse. In our first selenium test case, we will see below given points one by one. Launch the browser. Maximize the browser. Navigate to URL. Locate page elements. Perform actions on … Read more

CSS selector in selenium

This guide will show you how to use CSS Selector in Selenium to locate web elements accurately during test automation. You’ll learn various CSS selector strategies with syntax examples to help write cleaner and more efficient Selenium scripts. CSS selector in selenium CSS selectors in selenium are used to find element by string of html … Read more

Find element by link text in selenium

Selenium find element by link text Find element by link text is used only to locate hyperlinks on page. You can use By.linkText method of selenium to find link on page with exact match of text. Selenium find link by text value of hyperlink element. Expression to find by link text : findElement(By.linkText(“Text of link”)); How to … Read more