Commit c05518eb authored by tanish20-coder's avatar tanish20-coder
Browse files

removed yml file

1 merge request!12Initial commit
Showing with 44 additions and 49 deletions
+44 -49
image: rvancea/maven-chrome-jdk:latest
variables:
GIT_SSL_NO_VERIFY: "1"
build:
stage: build
script:
- mvn compile
test:
stage: test
services:
- selenium/standalone-firefox:latest
script:
- mvn clean test
artifacts:
paths:
- test-output/Spark.html
reports:
junit:
- test-output/Spark.html
when: always
......@@ -173,24 +173,6 @@
<pluginManagement><!-- lock down plugins versions to avoid using Maven
defaults (may be moved to parent pom) -->
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<includes>
<include>**/stepDefinitions/**/*.class</include>
<include>**/*.features</include>
</includes>
<archive>
<manifest>
<mainClass>runner.MainRunner</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
......@@ -253,6 +235,10 @@
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>3.1.1</version>
......@@ -273,6 +259,32 @@
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<archive>
<manifest>
<mainClass>runner.MainRunner</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
......
screenshots/Switching_between_multiple_tabs.jpeg/Switching_between_multiple_tabs.jpeg

140 KB

//Author: Tanish Srivastava
package pages;
import java.time.Duration;
......
......@@ -319,14 +319,8 @@ public class ElementUtils extends myLogs {
}
// public void switchToTabByIndex(WebDriver driver, int tabIndex) {
// ArrayList<String> tabs = new ArrayList<>(driver.getWindowHandles());
// if (tabIndex >= 0 && tabIndex < tabs.size()) {
// driver.switchTo().window(tabs.get(tabIndex));
// } else {
// throw new IllegalArgumentException("Invalid tab index: " + tabIndex);
// }
// }
// Author: Tanish Srivastava
// scroll to the element method
public void scrollToElement(WebElement element) {
Actions actions = new Actions(driver);
......
//Author: Tanish Srivastava
package TestComponents;
import java.io.File;
......
//Author: Tanish Srivastava
package TestComponents;
import java.io.File;
......
//Author: Tanish Srivastava
package TestComponents;
import static org.monte.media.FormatKeys.EncodingKey;
......
//Author: Tanish Srivastava
package runner;
import org.junit.runner.JUnitCore;
......
//Author: Tanish Srivastava
package stepDefinitions;
import java.io.IOException;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment