Class EditImagePage

java.lang.Object
com.snapfix.core.BaseSetup
com.snapfix.core.Driver
com.snapfix.pages.EditImagePage

public class EditImagePage
extends Driver
  • 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.InterruptedException
      This 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.InterruptedException
      This 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.InterruptedException
      This method is use for click on blue pencil option
      Throws:
      java.lang.InterruptedException
    • clickOnRedPencil

      public void clickOnRedPencil() throws java.lang.InterruptedException
      This method is use for click on red pencil option
      Throws:
      java.lang.InterruptedException
    • clickOnEraser

      public void clickOnEraser() throws java.lang.InterruptedException
      This method is use for click on eraser option
      Throws:
      java.lang.InterruptedException
    • clickOnText

      public void clickOnText() throws java.lang.InterruptedException
      This method is use for click on text option
      Throws:
      java.lang.InterruptedException
    • clickOnCrop

      public void clickOnCrop() throws java.lang.InterruptedException
      This method is use for click on crop option
      Throws:
      java.lang.InterruptedException
    • clickOnSubmitButton

      public void clickOnSubmitButton() throws java.lang.InterruptedException
      This 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.InterruptedException
      This method is use for set title of task
      Throws:
      java.lang.InterruptedException
    • setTaskTextLine1

      public void setTaskTextLine1​(java.lang.String textLine1) throws java.lang.InterruptedException
      This 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.InterruptedException
      This 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.InterruptedException
      This 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.InterruptedException
      This method is use to set text on line 4
      Parameters:
      textLine4 - is text for line 4
      Throws:
      java.lang.InterruptedException