Skip to content

Instantly share code, notes, and snippets.

@sofiabrun
sofiabrun / chatgptPom.xml
Created December 23, 2022 20:15
ChatGPT output Maven POM
<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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>my-project</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>My Project</name>
@sofiabrun
sofiabrun / chatgptAddToCartPOM.java
Created December 23, 2022 19:56
ChatGPT output Java + Selenium + JUnit - Page Object Model
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class AddToCartTest {
@sofiabrun
sofiabrun / chatgptAddToCart.java
Created December 23, 2022 19:52
ChatGPT output Java + Selenium + JUnit
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class AddToCartTest {