Package com.snapfix.pages
Class EditImagePage
java.lang.Object
com.snapfix.core.BaseSetup
com.snapfix.core.Driver
com.snapfix.pages.EditImagePage
public class EditImagePage extends Driver
-
Field Summary
Fields Modifier and Type Field Description org.openqa.selenium.By
backButton
org.openqa.selenium.By
bluePencilOption
org.openqa.selenium.By
capturedImage
org.openqa.selenium.By
cropOption
org.openqa.selenium.By
drawingView
org.openqa.selenium.By
eraserOption
org.openqa.selenium.By
redPencilOption
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
org.openqa.selenium.By
waitForCropButton
-
Constructor Summary
Constructors Constructor Description EditImagePage()
EditImagePage(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 click on blue pencil optionvoid
clickOnCrop()
This method is use for click on crop optionvoid
clickOnCropButton()
void
clickOnEraser()
This method is use for click on eraser optionvoid
clickOnRedPencil()
This method is use for click on red pencil optionvoid
clickOnSubmitButton()
This method is use for click on submit buttonvoid
clickOnText()
This method is use for click on text optionvoid
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
uploadImage()
void
waitForCropButton()
void
waitForImageEditScreen()
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
-
backButton
public org.openqa.selenium.By backButton -
bluePencilOption
public org.openqa.selenium.By bluePencilOption -
redPencilOption
public org.openqa.selenium.By redPencilOption -
eraserOption
public org.openqa.selenium.By eraserOption -
textOption
public org.openqa.selenium.By textOption -
cropOption
public org.openqa.selenium.By cropOption -
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 -
submitButton
public org.openqa.selenium.By submitButton -
drawingView
public org.openqa.selenium.By drawingView -
capturedImage
public org.openqa.selenium.By capturedImage -
waitForCropButton
public org.openqa.selenium.By waitForCropButton
-
-
Constructor Details
-
EditImagePage
public EditImagePage() -
EditImagePage
public EditImagePage(java.lang.String drv)
-
-
Method Details
-
waitForImageEditScreen
public void waitForImageEditScreen() throws java.lang.InterruptedExceptionThis method is use to wait for sketch screen- Throws:
java.lang.InterruptedException
-
waitForCropButton
public void waitForCropButton() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
clickOnBackButton
public void clickOnBackButton() throws java.lang.InterruptedExceptionThis method is use for click on back button- Throws:
java.lang.InterruptedException
-
clickOnCropButton
public void clickOnCropButton() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
clickOnBluePencil
public void clickOnBluePencil() throws java.lang.InterruptedExceptionThis method is use for click on blue pencil option- Throws:
java.lang.InterruptedException
-
clickOnRedPencil
public void clickOnRedPencil() throws java.lang.InterruptedExceptionThis method is use for click on red pencil option- Throws:
java.lang.InterruptedException
-
clickOnEraser
public void clickOnEraser() throws java.lang.InterruptedExceptionThis method is use for click on eraser option- Throws:
java.lang.InterruptedException
-
clickOnText
public void clickOnText() throws java.lang.InterruptedExceptionThis method is use for click on text option- Throws:
java.lang.InterruptedException
-
clickOnCrop
public void clickOnCrop() throws java.lang.InterruptedExceptionThis method is use for click on crop option- Throws:
java.lang.InterruptedException
-
clickOnSubmitButton
public void clickOnSubmitButton() throws java.lang.InterruptedExceptionThis method is use for click on submit button- Throws:
java.lang.InterruptedException
-
uploadImage
public void uploadImage() throws java.lang.InterruptedException- 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
-