Package com.snapfix.pages
Class SketchPage
java.lang.Object
com.snapfix.core.BaseSetup
com.snapfix.core.Driver
com.snapfix.pages.SketchPage
public class SketchPage extends Driver
-
Field Summary
Fields Modifier and Type Field Description org.openqa.selenium.BybackButtonorg.openqa.selenium.BybluePencilorg.openqa.selenium.BydrawingFrameorg.openqa.selenium.BydrawingOptionorg.openqa.selenium.BydrawingVieworg.openqa.selenium.Byeraserorg.openqa.selenium.ByredPencilorg.openqa.selenium.BysubmitButtonorg.openqa.selenium.BytaskTextLine1org.openqa.selenium.BytaskTextLine2org.openqa.selenium.BytaskTextLine3org.openqa.selenium.BytaskTextLine4org.openqa.selenium.BytextOptionorg.openqa.selenium.BytitleTextBox -
Constructor Summary
Constructors Constructor Description SketchPage()SketchPage(java.lang.String drv) -
Method Summary
Modifier and Type Method Description voidclickOnBackButton()This method is use for click on back buttonvoidclickOnBluePencil()This method is use for select blue pencil for drawingvoidclickOnDrawingOption()This method is use for select drawing modevoidclickOnEraser()This method is use for click on eraservoidclickOnRedPencil()This method is use for select red pencil for drawingvoidclickOnSubmitButton()This method is use for click on submit buttonvoidclickOnTextOption()This method is use for select text modevoidsetTaskTextLine1(java.lang.String textLine1)This method is use to set text on line 1voidsetTaskTextLine2(java.lang.String textLine2)This method is use to set text on line 2voidsetTaskTextLine3(java.lang.String textLine3)This method is use to set text on line 3voidsetTaskTextLine4(java.lang.String textLine4)This method is use to set text on line 4voidsetTitle(java.lang.String title)This method is use for set title of taskvoidwaitForSketchScreen()This method is use to wait for sketch screenMethods inherited from class com.snapfix.core.Driver
backNavigate, lauchApp, tearDownMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
drawingFrame
public org.openqa.selenium.By drawingFrame -
backButton
public org.openqa.selenium.By backButton -
drawingOption
public org.openqa.selenium.By drawingOption -
textOption
public org.openqa.selenium.By textOption -
bluePencil
public org.openqa.selenium.By bluePencil -
redPencil
public org.openqa.selenium.By redPencil -
eraser
public org.openqa.selenium.By eraser -
submitButton
public org.openqa.selenium.By submitButton -
titleTextBox
public org.openqa.selenium.By titleTextBox -
taskTextLine1
public org.openqa.selenium.By taskTextLine1 -
taskTextLine2
public org.openqa.selenium.By taskTextLine2 -
taskTextLine3
public org.openqa.selenium.By taskTextLine3 -
taskTextLine4
public org.openqa.selenium.By taskTextLine4 -
drawingView
public org.openqa.selenium.By drawingView
-
-
Constructor Details
-
SketchPage
public SketchPage() -
SketchPage
public SketchPage(java.lang.String drv)
-
-
Method Details
-
waitForSketchScreen
public void waitForSketchScreen() throws java.lang.InterruptedExceptionThis method is use to wait for sketch screen- Throws:
java.lang.InterruptedException
-
clickOnBackButton
public void clickOnBackButton() throws java.lang.InterruptedExceptionThis method is use for click on back button- Throws:
java.lang.InterruptedException
-
clickOnDrawingOption
public void clickOnDrawingOption() throws java.lang.InterruptedExceptionThis method is use for select drawing mode- Throws:
java.lang.InterruptedException
-
clickOnTextOption
public void clickOnTextOption() throws java.lang.InterruptedExceptionThis method is use for select text mode- Throws:
java.lang.InterruptedException
-
clickOnBluePencil
public void clickOnBluePencil() throws java.lang.InterruptedExceptionThis method is use for select blue pencil for drawing- Throws:
java.lang.InterruptedException
-
clickOnRedPencil
public void clickOnRedPencil() throws java.lang.InterruptedExceptionThis method is use for select red pencil for drawing- Throws:
java.lang.InterruptedException
-
clickOnEraser
public void clickOnEraser() throws java.lang.InterruptedExceptionThis method is use for click on eraser- Throws:
java.lang.InterruptedException
-
clickOnSubmitButton
public void clickOnSubmitButton() throws java.lang.InterruptedExceptionThis method is use for click on submit button- Throws:
java.lang.InterruptedException
-
setTitle
public void setTitle(java.lang.String title) throws java.lang.InterruptedExceptionThis method is use for set title of task- Throws:
java.lang.InterruptedException
-
setTaskTextLine1
public void setTaskTextLine1(java.lang.String textLine1) throws java.lang.InterruptedExceptionThis method is use to set text on line 1- Parameters:
textLine1- is text for line 1- Throws:
java.lang.InterruptedException
-
setTaskTextLine2
public void setTaskTextLine2(java.lang.String textLine2) throws java.lang.InterruptedExceptionThis method is use to set text on line 2- Parameters:
textLine2- is text for line 2- Throws:
java.lang.InterruptedException
-
setTaskTextLine3
public void setTaskTextLine3(java.lang.String textLine3) throws java.lang.InterruptedExceptionThis method is use to set text on line 3- Parameters:
textLine3- is text for line 3- Throws:
java.lang.InterruptedException
-
setTaskTextLine4
public void setTaskTextLine4(java.lang.String textLine4) throws java.lang.InterruptedExceptionThis method is use to set text on line 4- Parameters:
textLine4- is text for line 4- Throws:
java.lang.InterruptedException
-