All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bichromate.winium.sTestTruckPlus Maven / Gradle / Ivy

Go to download

Java, Selenium, Appium, Winium, Extend, and TestNG automated testing framework. Bichromate integrates the best of these frameworks and takes automation to the next level. With Bichromate there is one function call that builds any type of Web,IOS Mobile, Android, and Windows App driver on any platform (Windows, Mac, Linux). From Local web drivers, to SauceLabs, Browserstack, and Selenium grid. Build data driven tests is never easier. Bichromate also gives you built in Factories that, access DBs, Video Capture, FTP, POM Generation, Hilite element.

There is a newer version: 3.13
Show newest version
package bichromate.winium;


import org.openqa.selenium.WebElement;
import org.openqa.selenium.winium.WiniumDriver;

import bichromate.core.sTestHilitePageElementFactory;
import bichromate.core.sTestScreenCaptureFactory;



//import org.openqa.selenium.winium.WiniumDriver;

public class sTestTruckPlus {

	  private WiniumDriver app;
	  private sTestReasonCode rc = null;
	  private sTestScreenCaptureFactory sc = null;
	  private sTestHilitePageElementFactory he = null;
	
	  public sTestTruckPlus(WiniumDriver app) {
	      this.app = app;
	      sc = new sTestScreenCaptureFactory();
	      he = new sTestHilitePageElementFactory();
	  }
	  public sTestHilitePageElementFactory getHiliteElementFactory(){
		  return he;
	  }
	 public sTestScreenCaptureFactory getScreenCaptureFactory(){
		 sc.setCurrentRunName("SampleTruckPlus");
		 sc.setCurrentWebDriver(app);
		 return sc;
	 }
	  public boolean clickMenuItem(String menuName){
		  
		  WebElement e = app.findElementByName(String.valueOf(menuName));
		  if(null != e){
				  e.click();
				  return true;
		  }else{
			  return false;
		  }
		  
	  }//clickMenuItem
	  public boolean clickCloseButton(){
		  
		  WebElement e = app.findElementByName("Close");
		  if(null != e){
				  e.click();
				  return true;
		  }else{
			  return false;
		  }
		  
	  }//clickCloseButton
	  public boolean clickMinimizeButton(){
		  
		  WebElement e = app.findElementByName("Minimize");
		  if(null != e){
				  e.click();
				  return true;
		  }else{
			  return false;
		  }
		  
	  }//clickCloseButton
 public boolean clickMaxinimizeButton(){
		  
		  WebElement e = app.findElementByName("Maximize");
		  if(null != e){
				  e.click();
				  return true;
		  }else{
			  return false;
		  }
		  
	  }//clickCloseButton
	  
	  public sTestReasonCode getReasonCode(){
		  if(null == rc){
			  rc = new sTestReasonCode(app);
		  }
		  return rc;
		  
	  }
}//sTestTruckPlus




© 2015 - 2024 Weber Informatics LLC | Privacy Policy