Not able to validate if image is exists on screen or not
I have below code.
import java.util.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
//import org.openqa.
import org.openqa.
import org.sikuli.
//import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.sikuli.
import org.testng.Assert;
import org.testng.
import org.testng.
import org.testng.
import static org.testng.
public class Sikuli_Play_Video {
private static WebDriver driver;
Screen screen = new Screen();
static {
Debug.
}
@BeforeClass
public void setUp() throws FindFailed, InterruptedExce
{
System.
driver = new ChromeDriver();
}
public boolean ensureExists(
Match m = screen.
System.
if (m != null) {
return true;
}
return false;
}
@Test
public void TestplayVideo() throws FindFailed, InterruptedExce
{
try
{
// Load
driver.
driver.
driver.
//Create and initialize an instance of Screen object
String path_or = System.
Settings.DebugLogs = true;
//Add image path
Pattern image5 = new Pattern(
image5.
WebElement element = driver.
Coordinates coordinate = ((Locatable)
coordinate.
//Wait 10ms for image
screen.
System.
Debug.
screen.
System.
Thread.
Assert.
//play video
screen.
Debug.user("we clicked %s at %s", image5, screen.
// Assert.
//Thread.
}
{
}
}
@AfterClass
public static void tearDown()
{
driver.close();
}
}
I am not able to pass this test case It does not identify image.
i dont understand what is wrong here and it does not capture any log details as well
log.txt file is created but its shows blank.
Please help
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask sneha for more information if necessary.