Selenium web driver supports below methods.
void close() - Close the current window
WebElement findElement(By by) - Find the first WebElement using the given method.
java.util.List<WebElement> findElements(By by) - Find all elements
void get(java.lang.String url) - Load a new web page.
java.lang.String getCurrentUrl() - Gets URL the page loaded in the page.
java.lang.String getPageSource() - Get the html source of the page.
java.lang.String getTitle() - gets the title of the current page.
We can call these methods using driver object.
You may also like to read below topics.
What do you think on above selenium topic. Please provide your inputs and comments. Thanks
void close() - Close the current window
WebElement findElement(By by) - Find the first WebElement using the given method.
java.util.List<WebElement> findElements(By by) - Find all elements
void get(java.lang.String url) - Load a new web page.
java.lang.String getCurrentUrl() - Gets URL the page loaded in the page.
java.lang.String getPageSource() - Get the html source of the page.
java.lang.String getTitle() - gets the title of the current page.
We can call these methods using driver object.
You may also like to read below topics.
- Press key in Selenium Webdriver in Java
- Read Table Data in Selenium Webdriver in Java
- Take the screenshot in Selenium Webdriver in Java
- Execute JavaScript in Selenium Webdriver in Java
- Handle multiple browser windows in Selenium Webdriver in Java
- Double-Click on the Element in Selenium Webdriver in Java
- Exceptions in Selenium Webdriver in Java
- Synchronization in Selenium Webdriver in Java
No comments:
Post a Comment