Wednesday 8 February 2023

Introduction to Playwright

Playwright is a framework for web testing and automation. PlayWright is available in .NET, Java, JavaScript, TypeScript and python languages.

 

Is Playwright free?

Yes, playwright is available with Apache 2.0 licence.

 

Is Playwright support cross browsers?

Yes, playwright support all the modern web browsers like chrome, firefox, Webkit,, edge browsers etc.,

 

Maven pom.xml used for this tutorial

<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com.sample.app</groupId>
	<artifactId>playwright-demo</artifactId>
	<version>1.0.0</version>

	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		<jdk.version>17</jdk.version>
		<release.version>17</release.version>
	</properties>

	<dependencies>
		<dependency>
			<groupId>com.microsoft.playwright</groupId>
			<artifactId>playwright</artifactId>
			<version>1.28.1</version>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>3.10.1</version>
			</plugin>
		</plugins>
	</build>
</project>

 

You can download all the examples of this tutorial from this link.


 

 

Previous                                                 Next                                                 Home

No comments:

Post a Comment