Any update on Playwright Support in QAF?
--
You received this message because you are subscribed to the Google Groups "qaf users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qaf-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qaf-users/fa22aa7b-3c03-4562-919c-80f82d00a80bn%40googlegroups.com.
<repositories>
<repository>
<id>snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.qmetry</groupId>
<artifactId>qaf-playwright</artifactId>
<version>4.0.0-a-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>com.qmetry</groupId>
<artifactId>qaf-testng</artifactId>
<version>4.0.0-a-SNAPSHOT</version>
</dependency>
import org.testng.annotations.Test;
import com.microsoft.playwright.Locator;
import com.qmetry.qaf.automation.ui.playwright.PlaywrightDriver;
import com.qmetry.qaf.automation.ui.playwright.PlaywrightTestCase;
import com.qmetry.qaf.automation.ui.playwright.Validator;
public class PlaywrightDemo extends PlaywrightTestCase {
@Test
public void sampleTest() {
PlaywrightDriver driver = getDriver();
//String s = driver.takeScreenShot();
driver.getPage().navigate("https://www.google.com");
Locator loc = driver.getPage().locator("[name=q]");
loc.fill("qaf playright");
loc.dispatchEvent("submit");
Validator.verifyThat(loc).isVisible();
}
}