@swapnajeshwin
Profile
Registered: 6 years, 9 months ago
Selenium is quick turning into the main test automation tool on the planet deserting its rivals far in the race. Selenium webdriver is the most recent expansion to the suite that can speak with the program straightforwardly without a server and in this manner finishes the test systems quick. All selenium instructional exercises show selenium webdriver in detail, particularly the selenium webdriver strategies. Selenium webdriver techniques assume a vital part in making selenium exceedingly easy to use and this is one of the elements that helped selenium to accomplish the numero uno position on the planet among different test automation tools. Technique is an arrangement of code that can be alluded to by a name and can be summoned whenever in program just utilizing the name of the strategy. As it were strategies can be considered as sub programs following up on information. Selenium webdriver techniques list is too long and it has numerous strategies. Here in this article, we are talking about the real selenium webdriver techniques. get() :- This method is used to get a new webpage in the current browser window. getCurrentUrl(); - This is used to get a string representing the current URL opened by the browser. getTitle() :- This is used for getting the title of the current page findElements() :- This is meant for finding the elements in the page using the available mechanism findElement() :- Finding web elements with the available mechanism getPageSource() :- This is meant for finding the source of the current page loaded. However, it may not work properly if the page has been modified after loading. close() :- This is for closing the current window. If multiple windows are opened it will close the active window and if it is the last window opened it will quit the browser instance. quit() :- This selenium webdriver method is for quitting the webdriver instance. The primary strategy use in the wake of beginning the program will be "driver.get(url). Once subsequent to getting the driver, the beneath said selenium webdriver techniques can be utilized to perform distinctive capacities on it.
Forums
Topics Started: 0
Replies Created: 0
Forum Role: Member