List some Selenium commands in WebDriver?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Mar 03, 2020

 

List some of the WbDriver Selenium commands are,

  • get() - It takes a URL as its parameter and launches a new browser as it opens the specified URL in the browser instance.
  • getClass() - It is used to retrieve the Class object that represents the runtime class of this object.
  • getCurrentUrl() - It is used to retrieve the URL of the webpage that is currently processed by the user.
  • getPageSource() - It is used to retrieve the page source of the webpage that is currently accessed by the user.
  • getTitle() - It is used to retrieve the title of the webpage that is currently used by the user.
  • getText() - It is used to retrieve the inner text of the specified web element.
  • getAttribute() - It is used to retrieve the value of the specified attribute.
  • getWindowHandle() - It is used to tackle the situation when there is more than one window to deal with.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Selenium WebDriver Interview Questions

    What is a WebDriver in selenium?

    WebDriver in Selenium is a web automation framework. It allows the developers to execute their tests against different browsers. With this, the developers can also use different programming languages ...

    Selenium WebDriver Interview Questions

    What are the components of selenium?

    There are four basic components present in the WebDriver architecture.Bindings JSON Wire Protocol Browser Drivers Real BrowsersBindings are used by the developers in order to support multi...

    Selenium WebDriver Interview Questions

    What are the limitations of Selenium WebDriver?

    Some of the limitations of the Selenium WebDriver are,Only support for Web-Based applications Takes time to create test cases Difficult to set up a test environment No support for automation o...