Class SketchPage

java.lang.Object

public class SketchPage
extends Driver
  • 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.InterruptedException
      This method is use to wait for sketch screen
      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
    • clickOnDrawingOption

      public void clickOnDrawingOption() throws java.lang.InterruptedException
      This method is use for select drawing mode
      Throws:
      java.lang.InterruptedException
    • clickOnTextOption

      public void clickOnTextOption() throws java.lang.InterruptedException
      This method is use for select text mode
      Throws:
      java.lang.InterruptedException
    • clickOnBluePencil

      public void clickOnBluePencil() throws java.lang.InterruptedException
      This method is use for select blue pencil for drawing
      Throws:
      java.lang.InterruptedException
    • clickOnRedPencil

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

      public void clickOnEraser() throws java.lang.InterruptedException
      This method is use for click on eraser
      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
    • 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