In this selenium webdriver tutorial we will learn How to Perform Right Click in Selenium WebDriver. Performing right click in Selenium is possible by Actions class and method used is contextclick(). We will learn to perform right click anywhere on page or any specific webelement using contextclick().
Tag: selenium tutorial
Selenium WebDriver Tutorial #29 – How to Automate Slider in Selenium
In this selenium webdriver tutorial we will learn how to automate slider in Selenium WebDriver. Handling sliders in Selenium is possible by Actions class and we will learn step by step how to handle these sliders in any selenium automation script.
Selenium WebDriver Tutorial #19 – How to Print all Links of a Webpage
In this Selenium Webdriver Tutorial we will learn how to print all links of a webpage in Selenium WebDriver. In many scenarios you would be required to verify the presence of links or common element types on page, this technique will help you to find those webelements which have some common attributes.
Selenium WebDriver Tutorial #16 – WebElement Methods in Selenium
In this Selenium Webdriver Tutorial we will learn about Webelement methods in Selenium Webdriver. You will learn about some of the key webelement commands/methods in Selenium Java along with examples.
Some of the key methods covered are:
✅ sendKeys(java.lang.CharSequence… keysToSend) – Use this method to simulate typing into an element, which may set its value.
✅ clear() – If this element is a text entry element, this will clear the value.
✅ click() – Click this element.
✅ getAttribute(java.lang.String name) – Get the value of the given attribute of the element.
✅ getCssValue(java.lang.String propertyName) – Get the value of a given CSS property.
✅ getLocation() – Where on the page is the top left-hand corner of the rendered element?
✅ getSize() – What is the width and height of the rendered element?
✅ getTagName() – Get the tag name of this element.
✅ getText() – Get the visible text
✅ isDisplayed() – Is this element displayed or not? This method avoids the problem of having to parse an element’s “style” attribute.
✅ isEnabled() – Is the element currently enabled or not? This will generally return true for everything but disabled input elements.
✅ isSelected() – Determine whether or not this element is selected or not.
Selenium XPath Tutorial #11 – XPath Axes preceding, preceding-sibling
In this Selenium XPath tutorial we will learn about XPath axes methods “preceding” and “preceding-sibling” with examples.
XPath axes “preceding” method help in selecting all the nodes that appear before the context (Current) node.
XPath axes “preceding-sibling” method helps in selecting all the nodes that have the same parent as the context (Current) node and appear before the context (Current) node.