bichromate.winium.sTestTruckPlus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Bichromate Show documentation
Show all versions of Bichromate Show documentation
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.
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