Deep Dive on How to Automate Shadow DOM Elements using Selenium

Deep Dive on How to Automate Shadow DOM Elements using Selenium In Real world, Shadow DOM is a new DOM feature that helps you build components. Developers can use PSEUDO Elements in webpages for easy debugging whereas, developers now have the great ability to use WEB COMPONENTS as a way to encapsulate styling & functionality for particular components which means they can […]

Understanding sendKeys() Method

Understanding sendKeys() Method By including methods in “SearchContext“, we can get 17 methods in “WebElement“ to operate an element located in page source. sendkeys() is a method in Selenium which allows us to type content automatically into an editable field in executing any tests. These fields are webElement or webElements which can be identified using locators like element id, name, class […]

Understanding Click() Method

Understanding Click Method Here let’s Understanding Click() Method By including methods in “SearchContext“, we can get 17 methods in “WebElement“ to operate an element located in page source. Syntax: findElement(“locator”).click(); We can use this method to locate an element in page source and then to perform click operation on that located element. click() method has no argument; and this method is […]

What is a Java Package?

What is a Java Package? According to w3schools a package in Java is used within group of related classes. Think of it as a Folder in a Fie Directory. We can use these packages to avoid name conflicts and write a better and maintainable code. Packages are divided into two parts: Built-in Packages from Java API[application programming interface] User-Defined packages […]

How to work with Dropdown using Selenium Webdriver with Java

How to work with Dropdown using Selenium Webdriver with Java Let’s See How to work with Dropdown using Selenium Webdriver with Java Here we shall see a small program to check the drop-down values and how to select the value with single select. Case History – the execution flow of the below code is: Launch site Locate Drop-down check whether […]

Dynamic Web Elements in Web Automation

Dynamic Web Elements in Web Automation What is Dynamic Web Element? The dynamic web element is that Element whose IDs, & any other attributes like Class Name, Value etc. are not fixed on page source. It keeps on changing every time when page reloaded. So, we cannot handle that element simply by the exact value of any locator. Example: On […]

Types of HTML tags

Types of HTML tags HTML TAGS Here we will see how many types of HTML Tags exists. In html language we can get different type of tags related to different type of elements. HTML Tag Purpose a Link b Bold img Image table Table tbody Body of Table tr Row in table td Column in row select Dropdown iframe Frames […]

Registration Example Using Selenium WebDriver

Registration Example Using Selenium WebDriver Progrm to test registration process via Selenium Webdriver Java.  Launch https://www.mercurytravels.co.in/ site using chrome browser.  Click register link.  Fill fields and select INDIA as country.  Click register button.  Close site. //Launch site using chrome System.setProperty(“webdriver.chrome.driver”,”D:\\chromedriver.exe”); ChromeDriver driver=new ChromeDriver(); driver.manage().window().maximize(); driver.get(“https://www.mercurytravels.co.in/”); Thread.sleep(5000); //Click register link driver.findElement(By.linkText(“REGISTER”)).click(); Thread.sleep(5000); driver.findElement(By.name(“firstName”)).sendKeys(“xxxx”); driver.findElement(By.name(“lastName”)).sendKeys(“xxxx”); driver.findElement(By.name(“phone”)).sendKeys(“xxxx”); driver.findElement(By.name(“userName”)).sendKeys(“xxxx”); […]

Locating elements in webpages using Selenium WebDriver

Locating elements in webpages using Selenium WebDriver Locating elements In general, every test automation code need to below activities.  Launch Site Under Testing (SUT)  Locate elements  Operate elements  Observe elements functionality to confirm test passed/failed.  Close SUT While locating elements in webpages we need to follow below algorithm related to selenium web driver.     […]

What is SearchContext?

What is SearchContext? SearchContext Is interface of Webdriver which contains only two abstract method findElement() and findElements(). This interface is extended by both WebDriver and WebElement interfaces. These two methods don’t have a method body. Webdriver Hiehrarchy Interface Webdriver: WebDriver is an interface which extends SearchContext interface. WebDriver is a remote control interface that enables introspection and control of user agents (browsers). […]

×

Hello!

Click one of our representatives below to chat on WhatsApp or send us an email to mannavaadi@live.com

× How can I help you?