public interface ScreenService
| Modifier and Type | Method and Description | 
|---|---|
double | 
getDifferencePercent(String actual,
                    String expected)
Percentage difference between images. 
 | 
void | 
saveScreenshot(String screenName)
Indicates a driver that can capture a screenshot and store it in different ways. 
 | 
void | 
saveScreenshot(String screenName,
              org.openqa.selenium.WebElement element)
Indicates a driver that can capture a screenshot of one element only and store it in different ways. 
 | 
void | 
scrollIntoView(org.openqa.selenium.WebElement element)  | 
void | 
startVideoCapture(String screenName)
Start video capture with screenName.avi in DOWNLOAD_FILES_FOLDER folder. 
 | 
void | 
stopVideoCapture()
Stop video capture in DOWNLOAD_FILES_FOLDER folder.. 
 | 
void | 
takeScreenshot(io.cucumber.core.api.Scenario scenario)
Indicates a driver that can capture a screenshot and store it in different ways. 
 | 
void takeScreenshot(io.cucumber.core.api.Scenario scenario)
scenario - is instance of {link cucumber.api.Scenario}void saveScreenshot(String screenName) throws IOException
screenName - name of screenshot file.IOException - if file or directory is wrong.void saveScreenshot(String screenName, org.openqa.selenium.WebElement element) throws IOException
screenName - name of screenshot file.element - WebElement concerned.IOException - if file or directory is wrong.void startVideoCapture(String screenName) throws IOException, AWTException
screenName - name of output file (video file).IOException - if file or directory is wrong.AWTException - if configuration video file is wrong.void stopVideoCapture()
               throws IOException
IOException - if file or directory is wrong.void scrollIntoView(org.openqa.selenium.WebElement element)
element - WebElement concerned.double getDifferencePercent(String actual, String expected) throws IOException
actual - is actual source.expected - is expected source.IOExceptionCopyright © 2023 NoraUi. All rights reserved.