{"repo":"sukgu/shadow-automation-selenium","free":true,"listed":false,"github":"https://github.com/sukgu/shadow-automation-selenium","clone":"git clone https://github.com/sukgu/shadow-automation-selenium.git","description":"This project focuses on automation of multi-level shadow root dom using java selenium. You can embed this plugin in your java selenium project.","language":"Java","stars":116,"topics":["selenium","selenium-webdriver","selenium-java","shadow-dom","polymer","automation","testing-tools","custom-elements","custom-tag"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"Shadow root DOM automation using selenium Shadow DOM: Shadow DOM is a web standard that offers component style and markup encapsulation. It is a critically important piece of the Web Components story as it ensures that a component will work in any environment even if other CSS or JavaScript is at play on the page. Custom HTML Tags: Custom HTML tags can't be directly identified with selenium tools. Using this plugin you can handle any custom HTML tags. Problem Statement: - You have already developed your web-based automation framework in java selenium. Your frontend application uses Polymer that uses shadow dom. Selenium doesn't provide any way to deal with shadow-dom elements. - Your application page contains custom HTML tags that can't be identified directly using selenium. Solution: You can use this plugin by adding jar file or by including maven dependency in your java selenium project. How it works: Methods: WebElement findElement(String cssSelector) : use this method if want single element from DOM List findElements(String cssSelector) : use this if you want to find all elements from DOM WebElement findElement(WebElement parent, String cssSelector) : use this if you want to find a single elements from parent object DOM List findElements(WebElement parent, String cssSelector) : use this if you want to find all elements from parent object DOM WebElement findElementByXPath(String XPath) : use this method if want single element from DOM List findElementsByXPath(String XPath)","default_branch":null,"files":null,"tree":[],"storefront":"/r/sukgu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/sukgu/shadow-automation-selenium/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}