Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Archives: FAQs

What are the verification points available in Selenium?

Different types of verification points in Selenium are: To check element is presentif(driver.findElements(By.Xpath(“value”)).size()!=0){System.out.println(“Element is present”);}else{System.out.println(“Element is absent”);} To check element is visibleif(driver.findElement(By.Id(“submit”)).isDisplayed()){System.out.println(“Element is visible”);}else{System.out.println(“Element is visible”);} To check element is enabledif(driver.findElement(By.Id(“submit”)).isEnabled()){System.out.println(“Element is enabled”);}else{System.out.println(“Element is disabled”);} To check text is presentif(driver.getPageSource().contains(“Text”)){System.out.println(“Text is present”);}else{System.out.println(“Text is not present”);}