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.By
backButton
org.openqa.selenium.By
bluePencil
org.openqa.selenium.By
drawingFrame
org.openqa.selenium.By
drawingOption
org.openqa.selenium.By
drawingView
org.openqa.selenium.By
eraser
org.openqa.selenium.By
redPencil
org.openqa.selenium.By
submitButton
org.openqa.selenium.By
taskTextLine1
org.openqa.selenium.By
taskTextLine2
org.openqa.selenium.By
taskTextLine3
org.openqa.selenium.By
taskTextLine4
org.openqa.selenium.By
textOption
org.openqa.selenium.By
titleTextBox
-
Constructor Summary
Constructors Constructor Description SketchPage()
SketchPage(java.lang.String drv)
-
Method Summary
Modifier and Type Method Description void
clickOnBackButton()
This method is use for click on back buttonvoid
clickOnBluePencil()
This method is use for select blue pencil for drawingvoid
clickOnDrawingOption()
This method is use for select drawing modevoid
clickOnEraser()
This method is use for click on eraservoid
clickOnRedPencil()
This method is use for select red pencil for drawingvoid
clickOnSubmitButton()
This method is use for click on submit buttonvoid
clickOnTextOption()
This method is use for select text modevoid
setTaskTextLine1(java.lang.String textLine1)
This method is use to set text on line 1void
setTaskTextLine2(java.lang.String textLine2)
This method is use to set text on line 2void
setTaskTextLine3(java.lang.String textLine3)
This method is use to set text on line 3void
setTaskTextLine4(java.lang.String textLine4)
This method is use to set text on line 4void
setTitle(java.lang.String title)
This method is use for set title of taskvoid
waitForSketchScreen()
This method is use to wait for sketch screenMethods inherited from class com.snapfix.core.Driver
backNavigate, lauchApp, tearDown
Methods 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
-