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.BybackButtonElementorg.openqa.selenium.BycameraButtonorg.openqa.selenium.BycameraFlipButtonorg.openqa.selenium.BycameraVieworg.openqa.selenium.BycaptureButtonorg.openqa.selenium.BycloseButtonorg.openqa.selenium.ByflashToggleButtonorg.openqa.selenium.BygalleryButtonorg.openqa.selenium.BytextButtonorg.openqa.selenium.ByvideoButton -
Constructor Summary
Constructors Constructor Description CameraPage()CameraPage(java.lang.String drv) -
Method Summary
Modifier and Type Method Description booleancheckImageEditScreenElement()This method is use for check is sketch screen present or notbooleancheckSketchScreenElement()This method is use for check is sketch screen present or notvoidclickCloseCamera()This method is use for close camera screen.voidclickOnAllowPermissionButton()This method is use for click on allow permission button.voidclickOnCamera()This method is use for click on camera option.voidclickOnCapture()This method is use for click on capture floating button.voidclickOnDrawingEditIcon()voidclickOnFlashToggle()This method is use for click on flash icons for change mode of flash.voidclickOnFlipCamera()This method is use for click on flip camera option.voidclickOnGallery()This method is use for click on Gallery option.voidclickOnText()This method is use for click on text/drawing option.voidclickOnVideo()This method is use for click on video option.voiddrawLine()voiddrawLineEraser()voidisBluePencil()Assert test case after click on capture button image edit screenvoidisDisplayProfileImage()Assert test case after click on text option sketch displaybooleanisJobCreatedWithCamera()booleanisJobCreatedWithDrawing()booleanisJobCreatedWithTextview()booleanisJobCreatedWithVideo()booleanisJobEditImageWithTextline()voidwaitForBackIcon()voidwaitForCameraIconWithTextview()voidwaitForCameraScreen()This method is use to wait for camera screenvoidwaitForVideoIconWithTextview()Methods inherited from class com.snapfix.core.Driver
backNavigate, lauchApp, tearDownMethods 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()
-