Skip to content

Commit

Permalink
JAVA-21486 Split or move selenium-junit-testng module (moved-4) (euge…
Browse files Browse the repository at this point in the history
…np#14366)

Co-authored-by: timis1 <noreplay@yahoo.com>
  • Loading branch information
timis1 and timis1 committed Jul 9, 2023
1 parent cbd86f2 commit 976fcdb
Show file tree
Hide file tree
Showing 38 changed files with 39 additions and 32 deletions.
4 changes: 2 additions & 2 deletions testing-modules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
<module>powermock</module>
<module>rest-assured</module>
<module>rest-testing</module>
<module>selenium-junit-testng</module>
<module>selenium-webdriver</module>
<module>selenium</module>
<module>selenium-2</module>
<module>spring-mockito</module>
<module>spring-testing-2</module>
<module>spring-testing</module>
Expand Down
10 changes: 10 additions & 0 deletions testing-modules/selenium-2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
### Relevant Articles:
- [Running Selenium Scripts with JMeter](https://www.baeldung.com/selenium-jmeter)
- [Fixing Selenium WebDriver Executable Path Error](https://www.baeldung.com/java-selenium-webdriver-path-error)
- [Implicit Wait vs Explicit Wait in Selenium Webdriver](https://www.baeldung.com/selenium-implicit-explicit-wait)

#### Notes:
- to run the live tests for the article *Fixing Selenium WebDriver Executable Path Error*, follow the manual setup described
[Fixing Selenium WebDriver Executable Path Error](https://www.baeldung.com/java-selenium-webdriver-path-error#manual-setup); download the 3
drivers mentioned and place them in the src/test/resources directory

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>selenium-webdriver</artifactId>
<artifactId>selenium-2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>selenium-webdriver</name>
<name>selenium-2</name>

<parent>
<groupId>com.baeldung</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package com.baeldung.selenium.wait;

import io.github.bonigarcia.wdm.WebDriverManager;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.time.Duration;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -12,10 +16,7 @@
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.time.Duration;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import io.github.bonigarcia.wdm.WebDriverManager;

final class ExplicitWaitLiveTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package com.baeldung.selenium.wait;

import io.github.bonigarcia.wdm.WebDriverManager;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;

import java.time.Duration;

import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -13,10 +17,7 @@
import org.openqa.selenium.support.ui.FluentWait;
import org.openqa.selenium.support.ui.Wait;

import java.time.Duration;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import io.github.bonigarcia.wdm.WebDriverManager;

final class FluentWaitLiveTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.baeldung.selenium.wait;

import static org.junit.jupiter.api.Assertions.assertEquals;

import java.time.Duration;

import io.github.bonigarcia.wdm.WebDriverManager;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -10,9 +12,7 @@
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;

import java.time.Duration;

import static org.junit.jupiter.api.Assertions.assertEquals;
import io.github.bonigarcia.wdm.WebDriverManager;

final class ImplicitWaitLiveTest {

Expand Down
2 changes: 0 additions & 2 deletions testing-modules/selenium-webdriver/README.md

This file was deleted.

File renamed without changes
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
### Relevant Articles:

- [Guide to Selenium with JUnit / TestNG](http://www.baeldung.com/java-selenium-with-junit-and-testng)
- [Clicking Elements in Selenium using JavaScript](https://www.baeldung.com/java-selenium-javascript)
- [Handle Browser Tabs With Selenium](https://www.baeldung.com/java-handle-browser-tabs-selenium)
- [Opening a New Tab Using Selenium WebDriver in Java](https://www.baeldung.com/java-selenium-open-new-tab)
- [Retrieve the Value of an HTML Input in Selenium WebDriver](https://www.baeldung.com/java-selenium-html-input-value)
- [Testing with Selenium/WebDriver and the Page Object Pattern](http://www.baeldung.com/selenium-webdriver-page-object)
- [Using Cookies With Selenium WebDriver in Java](https://www.baeldung.com/java-selenium-webdriver-cookies)
- [Clicking Elements in Selenium using JavaScript](https://www.baeldung.com/java-selenium-javascript)
- [Taking Screenshots With Selenium WebDriver](https://www.baeldung.com/java-selenium-screenshots)
- [Running Selenium Scripts with JMeter](https://www.baeldung.com/selenium-jmeter)
- [Fixing Selenium WebDriver Executable Path Error](https://www.baeldung.com/java-selenium-webdriver-path-error)
- [Handle Browser Tabs With Selenium](https://www.baeldung.com/java-handle-browser-tabs-selenium)
- [Implicit Wait vs Explicit Wait in Selenium Webdriver](https://www.baeldung.com/selenium-implicit-explicit-wait)
- [Uploading File Using Selenium Webdriver in Java](https://www.baeldung.com/java-selenium-upload-file)
- [StaleElementReferenceException in Selenium](https://www.baeldung.com/selenium-staleelementreferenceexception)
- [Retrieve the Value of an HTML Input in Selenium WebDriver](https://www.baeldung.com/java-selenium-html-input-value)
- [Opening a New Tab Using Selenium WebDriver in Java](https://www.baeldung.com/java-selenium-open-new-tab)

#### Notes:
- to run the live tests for the article *Fixing Selenium WebDriver Executable Path Error*, follow the manual setup described
- to run the live tests, follow the manual setup described
[Fixing Selenium WebDriver Executable Path Error](https://www.baeldung.com/java-selenium-webdriver-path-error#manual-setup); download the 3
drivers mentioned and place them in the src/test/resources directory
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>selenium-junit-testng</artifactId>
<artifactId>selenium</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>selenium-junit-testng</name>
<name>selenium</name>

<parent>
<groupId>com.baeldung</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.openqa.selenium.By;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

import org.openqa.selenium.firefox.FirefoxDriver;

import io.github.bonigarcia.wdm.WebDriverManager;
Expand Down

0 comments on commit 976fcdb

Please sign in to comment.