Category : Automation Testing

Email A cucumber is a tool based on Behaviour Driven Development (BDD) framework which is used to write acceptance tests for the web application. It allows automation of functional validation in an easily readable and understandable format (like plain English) to Business Analysts, Developers, Tes..

Read more

Emailpublic static WebDriver OpenApp(String BrowserName, String url){ fn_LaunchBrowser(BrowserName); fn_OpenURL(url); return driver; } public static void fn_OpenURL(String url){ driver.get(url); driver.manage().window().maximize(); }   public static WebDriver fn_LaunchBrowser(String browsername){ if(browsername==”CH”){ System.setProperty(“webdriver.chrome.driver”, “Drivers\chromedriver.exe”); driver= new ChromeDriver(); }else if(browsername==”FF”){ driver= new FirefoxDriver(); }else if(browsername==”IE”){ System.setProperty(“webdriver.ie.driver”, “Drivers\IEDriverServer.exe”); driver= new InternetExplorerDriver(); } driver.manage().timeouts().implicitlyWait(80, TimeUnit.SECONDS); return..

Read more

Emailpublic static void takeSnapShot(WebDriver webdriver,String fileWithPath) throws Exception{ //Convert web driver object to TakeScreenshot TakesScreenshot scrShot =((TakesScreenshot)webdriver); //Call getScreenshotAs method to create image file File SrcFile=scrShot.getScreenshotAs(OutputType.FILE); //Move image file to new destination File DestFile=new File(fileWithPath); //Copy file at destination FileUtils.copyFile(SrcFile, ..

Read more

Email@Test public void loginTest() throws InterruptedException { System.out.println(“Testing”); driver.get(“https://customer.onlinelic.in/ForgotPwd.htm”); WebElement element = driver.findElement(By.xpath(“//*[@id=’forgotPassword’]/table/tbody/tr[5]/td[3]/img”)); System.out.println(” get the instance “); String elementTest = element.getAttribute(“src”); System.out.println(“Element : ” + eleme..

Read more