Selenium WebDriver Commands

11. Selenium Verification methods:

  • getTitle();
  • getCurrentUrl();
  • getText();

12. Verify the text, images, text boxes, radio buttons, checkboxes methods:

  • isDisplayed();
  • isEnabled();
  • isSelected();
13. File Upload methods in Selenium:

To upload a file we can use sendKeys() method.

driver.findElement(By.xpath(“input field”)).sendKeys(“path of the file to upload”);