Package com.snapfix.pages
Class CameraPage
java.lang.Object
com.snapfix.core.BaseSetup
com.snapfix.core.Driver
com.snapfix.pages.CameraPage
public class CameraPage extends Driver
-
Field Summary
Fields Modifier and Type Field Description org.openqa.selenium.By
backButtonElement
org.openqa.selenium.By
cameraButton
org.openqa.selenium.By
cameraFlipButton
org.openqa.selenium.By
cameraView
org.openqa.selenium.By
captureButton
org.openqa.selenium.By
closeButton
org.openqa.selenium.By
flashToggleButton
org.openqa.selenium.By
galleryButton
org.openqa.selenium.By
textButton
org.openqa.selenium.By
videoButton
-
Constructor Summary
Constructors Constructor Description CameraPage()
CameraPage(java.lang.String drv)
-
Method Summary
Modifier and Type Method Description boolean
checkImageEditScreenElement()
This method is use for check is sketch screen present or notboolean
checkSketchScreenElement()
This method is use for check is sketch screen present or notvoid
clickCloseCamera()
This method is use for close camera screen.void
clickOnAllowPermissionButton()
This method is use for click on allow permission button.void
clickOnCamera()
This method is use for click on camera option.void
clickOnCapture()
This method is use for click on capture floating button.void
clickOnDrawingEditIcon()
void
clickOnFlashToggle()
This method is use for click on flash icons for change mode of flash.void
clickOnFlipCamera()
This method is use for click on flip camera option.void
clickOnGallery()
This method is use for click on Gallery option.void
clickOnText()
This method is use for click on text/drawing option.void
clickOnVideo()
This method is use for click on video option.void
drawLine()
void
drawLineEraser()
void
isBluePencil()
Assert test case after click on capture button image edit screenvoid
isDisplayProfileImage()
Assert test case after click on text option sketch displayboolean
isJobCreatedWithCamera()
boolean
isJobCreatedWithDrawing()
boolean
isJobCreatedWithTextview()
boolean
isJobCreatedWithVideo()
boolean
isJobEditImageWithTextline()
void
waitForBackIcon()
void
waitForCameraIconWithTextview()
void
waitForCameraScreen()
This method is use to wait for camera screenvoid
waitForVideoIconWithTextview()
Methods 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
-
cameraButton
public org.openqa.selenium.By cameraButton -
textButton
public org.openqa.selenium.By textButton -
videoButton
public org.openqa.selenium.By videoButton -
galleryButton
public org.openqa.selenium.By galleryButton -
captureButton
public org.openqa.selenium.By captureButton -
flashToggleButton
public org.openqa.selenium.By flashToggleButton -
cameraFlipButton
public org.openqa.selenium.By cameraFlipButton -
closeButton
public org.openqa.selenium.By closeButton -
cameraView
public org.openqa.selenium.By cameraView -
backButtonElement
public org.openqa.selenium.By backButtonElement
-
-
Constructor Details
-
CameraPage
public CameraPage() -
CameraPage
public CameraPage(java.lang.String drv)
-
-
Method Details
-
clickOnCamera
public void clickOnCamera() throws java.lang.InterruptedExceptionThis method is use for click on camera option.- Throws:
java.lang.InterruptedException
-
clickOnVideo
public void clickOnVideo() throws java.lang.InterruptedExceptionThis method is use for click on video option.- Throws:
java.lang.InterruptedException
-
clickOnGallery
public void clickOnGallery() throws java.lang.InterruptedExceptionThis method is use for click on Gallery option.- Throws:
java.lang.InterruptedException
-
clickOnText
public void clickOnText() throws java.lang.InterruptedExceptionThis method is use for click on text/drawing option.- Throws:
java.lang.InterruptedException
-
clickOnCapture
public void clickOnCapture() throws java.lang.InterruptedExceptionThis method is use for click on capture floating button.- Throws:
java.lang.InterruptedException
-
clickOnFlashToggle
public void clickOnFlashToggle() throws java.lang.InterruptedExceptionThis method is use for click on flash icons for change mode of flash.- Throws:
java.lang.InterruptedException
-
clickOnFlipCamera
public void clickOnFlipCamera() throws java.lang.InterruptedExceptionThis method is use for click on flip camera option.- Throws:
java.lang.InterruptedException
-
clickCloseCamera
public void clickCloseCamera() throws java.lang.InterruptedExceptionThis method is use for close camera screen.- Throws:
java.lang.InterruptedException
-
clickOnAllowPermissionButton
public void clickOnAllowPermissionButton() throws java.lang.InterruptedExceptionThis method is use for click on allow permission button.- Throws:
java.lang.InterruptedException
-
clickOnDrawingEditIcon
public void clickOnDrawingEditIcon() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
waitForCameraScreen
public void waitForCameraScreen() throws java.lang.InterruptedExceptionThis method is use to wait for camera screen- Throws:
java.lang.InterruptedException
-
checkSketchScreenElement
public boolean checkSketchScreenElement()This method is use for check is sketch screen present or not -
isDisplayProfileImage
public void isDisplayProfileImage()Assert test case after click on text option sketch display -
checkImageEditScreenElement
public boolean checkImageEditScreenElement()This method is use for check is sketch screen present or not -
isBluePencil
public void isBluePencil()Assert test case after click on capture button image edit screen -
isJobCreatedWithCamera
public boolean isJobCreatedWithCamera() -
isJobCreatedWithTextview
public boolean isJobCreatedWithTextview() -
isJobCreatedWithDrawing
public boolean isJobCreatedWithDrawing() -
isJobCreatedWithVideo
public boolean isJobCreatedWithVideo() -
isJobEditImageWithTextline
public boolean isJobEditImageWithTextline() -
waitForCameraIconWithTextview
public void waitForCameraIconWithTextview() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
waitForVideoIconWithTextview
public void waitForVideoIconWithTextview() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
waitForBackIcon
public void waitForBackIcon() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
drawLine
public void drawLine() -
drawLineEraser
public void drawLineEraser()
-