PDF Google Drive Downloader v1.1


Báo lỗi sự cố

Nội dung text 3. Locating Elements.pdf

SearchContext<> methods: ➢ findElement(By by) : WebElement<> ➢ findElements(By by) : List If we have to perform any action of elements of web page (e.g. entering data in email text box, clicking on a button etc) it is important to locate that element, and if we want to locate the element we will use methods of SearchContext<> findElement(By locator) : WebElement ➢ findElement is used to locate a single element in a WebPage ➢ method returns a web element in WebElement<> type ,if the element is found in the DOM/HTML ➢ If no element is found, findElement method throws "NoSuchElementException" ➢ If there are multiple elements matching the same locator, findElement method returns the first matching element from the DOM/HTML. Locator Strategies: ➢ findElement and findElements both are parameterized methods, which accepts By type of Object reference


Tài liệu liên quan

x
Báo cáo lỗi download
Nội dung báo cáo



Chất lượng file Download bị lỗi:
Họ tên:
Email:
Bình luận
Trong quá trình tải gặp lỗi, sự cố,.. hoặc có thắc mắc gì vui lòng để lại bình luận dưới đây. Xin cảm ơn.