Playwright Support in QAF

40 views
Skip to first unread message

Renish K.R

unread,
Oct 8, 2024, 9:49:54 PM10/8/24
to qaf users
Any update on Playwright Support in QAF? 

Chirag Jayswal

unread,
Oct 11, 2024, 10:25:24 PM10/11/24
to qaf users
It might take longer than expected as planning to split qaf in next release. Let me see if snapshot can be ready for early access.

On Tue, Oct 8, 2024, 9:49 PM Renish K.R <reni...@gmail.com> wrote:
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.

cjayswal

unread,
Dec 6, 2024, 2:55:57 PM12/6/24
to qaf users
You can try snapshot for early access:

Here is quick example:

POM:

<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>

Sample test case:

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();

}


}


Reply all
Reply to author
Forward
0 new messages