Pre Requisites – PHP 5.3, PHP UNIT What is phantomjs This is used for headless webtesting Run functional tests with frameworks such as Jasmine, QUnit, Mocha, Capybara, WebDriver, and many others for screen capture Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview for Page automation Access and manipulate webpages […]
Hope you guys have basic knowledge in selenium? yep..that’s enough for this. I am using linux as testing environment.. the procedures will be same in windows or other platforms, but the installation process will be different for each platforms. Prerequisite 1. Install python using – most of the cases this is not needed, should be […]
public String checkElement(WebDriver driver,By by ){ if (driver.findElements(by).size() < 1){ System.out.println("Test is Passed"); return “Pass”; }else { System.out.println(“Test is failed”); return “Fail”; } } System.out.println(checkElement(driver, By.xpath("//button[@id='gbqfba']")));;