Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created June 20, 2022 12:05
Show Gist options
  • Save SarahElson/a05e0f5ae916a30bb8c44bc8a71d4f04 to your computer and use it in GitHub Desktop.
Save SarahElson/a05e0f5ae916a30bb8c44bc8a71d4f04 to your computer and use it in GitHub Desktop.
How to select multiple checkboxes in Selenium WebDriver using Java?
<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>MultipleCheckboxes</groupId>
<artifactId>MultipleCheckboxes</artifactId>
<version>0.0.1-SNAPSHOT</version>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>16</release>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.Seleniumhq.Selenium</groupId>
<artifactId>Selenium-java</artifactId>
<version>4.1.4</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>7.5</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment