r/SeleniumJava • • May 22 '25

Course recommendation

4 Upvotes

Hey everyone, can anyone recommend an online course that would cover basic to advance for Selenium using Java. Also if anyone have any quick guide related to it.

I had prior knowledge of Python,Java...

Any roadmap would be much of a help.


r/SeleniumJava • • Aug 28 '24

Java Selenium Work

4 Upvotes

I have learned Java basics (Variables, Data Types, Conditions, Loop, Oops, Casting, Wrapper, Arrays, Exception Handling, ) and Selenium.

I want to know how we work in real projects or companies as I don't have automation experience. I have 2 years of work experience as a Manual so kindly explain or share the experiences.


r/SeleniumJava • • Jun 19 '24

Okta Authentication in Test Automation Using Selenium Java

4 Upvotes

Hey all, I've been dealing with this same login issue for year and I HATE Okta so much because it always ends up being the one thing that makes it so difficult to fully automate our testing. We were doing just fine given that we were able to use the security question method when logging in but our cyber security department decided to remove that option altogether. Has anyone been able to automate logging into Okta using the Okta verify app or sms options? How did you integrate into your test automation? Examples? For context, I built a Maven framework using Selenium WebDriver and written in Java. It uses Cucumber TestNG.


r/SeleniumJava • • Feb 19 '25

"Job Interview Questions Bank πŸš€ - Your Ultimate Guide to Cracking Selenium Interviews!"

3 Upvotes

I'm building a resource for Selenium testing interview questions and would love for everyone to contribute questions they've encountered. The goal is to create a comprehensive bank covering below topics. This will be super helpful for anyone preparing for Selenium interviews!

  • Selenium WebDriver

  • TestNG

  • JUnit

  • Maven

  • Gradle

  • WebDriver Manager

  • Browser Developer Tools (Chrome DevTools, Firefox DevTools)

  • Git & GitHub/GitLab/Bitbucket

  • Jenkins

  • Appium (for mobile testing)

  • Postman (for API testing)

  • Cucumber (for BDD)

  • Allure Report (for reporting)

  • Sikuli (for image-based automation)

  • Selenium Grid Docker

  • Selenium IDE SQL (for database testing)

  • HTML/CSS (for web element locators)

  • Networking Basics (HTTP requests/responses)


r/SeleniumJava • • Jul 24 '24

No Need for Automation Engineers Anymore? AI Generates and Executes Sele...

Thumbnail
youtube.com
3 Upvotes

r/SeleniumJava • • Jul 22 '24

Self healing selenium scripts backed by AI

3 Upvotes

r/SeleniumJava • • Jun 06 '24

How to setup Selenium with Java in Eclipse?

3 Upvotes

Can somebody give me an up to date documentation on how to setup Selenium with Java on Eclipse


r/SeleniumJava • • Apr 10 '24

Exploring Java Selenium: Seeking Recommendations for Hands-On Project Resources.

3 Upvotes

I have learnt Java Selenium recently along with TestNG, Git, Github, Jenkins. Now I want some projects to get more hands-on experience and showcase the same on my resume. Can anyone please recommend some websites or resources where I can find Java Selenium projects to practice? Thanks in advance.


r/SeleniumJava • • Jun 05 '23

A mistake I made that took me three days to find in my code when I was a new coder

3 Upvotes
public void someMethod(Object[] someParam)
{
    for (int i = 0; i < someParam.length; i++);

    /// other stuff happens 
}

    

public void someOtherMethod(Object[] someParam){
    /// other stuff happens        

    if (someParam[0].thingHasBeenSet){
        someParam[0].doTheTruffleShuffle();
    }
}

Back when I made this coding error I was building a 3D game engine for school using C++ (Code above is a Java example). Everything worked great in the game and in the engine but one thing just wouldn't work. We were coming down to the wire for submission and if I couldn't find the problem I was going to have to remove that feature from the engine. When I finally saw it my heart sank in my chest. I had spent three days trying to debug a piece of code I had accidentally sabotaged with a semi-colon. After removing the semi-colon (and filling in the logic for that loop) the code worked fine and we were able to hand in our project without removing anything.

So my question to you fair people is why is this:

for (int i = 0; i < 20; i++);

a valid statement in languages like C# and Java? How is someone meant to use this statement to serve any purpose? I feel like the semi-colon found at the end of this statement should be treated as a compilation error. Hopefully one of you can help me understand this better.


r/SeleniumJava • • Feb 04 '22

r/SeleniumJava Lounge

3 Upvotes

A place for members of r/SeleniumJava to chat with each other


r/SeleniumJava • • May 14 '25

QA Automation testing

2 Upvotes

Hello everyone,

I'm looking for help with writing automation tests using Selenium. I have a few smaller tasks involving creating tests for a website. If anyone can assist, I'd really appreciate it. Thank you in advance!


r/SeleniumJava • • Dec 27 '24

This browser or app may not be secure. Learn more Try using a different browser. If you're already using a supported browser, you can try again to sign in.

2 Upvotes

While I am running a automation script in selenium java in between there was google sign in I am able to enter the email id and after the clicking next I am getting this error

This browser or app may not be secure.

Learn more

Try using a different browser. If you're already using a supported browser, you can try again to sign in.

How to resolve this issue ?


r/SeleniumJava • • Dec 17 '24

How Firefox is working without gekodriver?

2 Upvotes

I just started using Selenium after 5 years. I remember selenium doesn't work without the gekodriver in path. Today I was following the getting started guide from Selenium doc and there were no mention of downloading or setting path for gekodriver executable either. Right now, I don't have it in path environment variable nor installed at all, yet automations are launching. What changed?


r/SeleniumJava • • Dec 05 '24

what is the best way to video screen record selenium tests and attach to Allure report

2 Upvotes

My tests are running in Jenkins lInux machine.
when executing the tests , i want following things to happen

  1. Screen record during test execution

  2. Save the video

  3. Attach the video with allure report

  4. Delete the video after 5 days

any libraries you guys suggest for the same ?


r/SeleniumJava • • Aug 02 '24

How to create docker file with Chrome browser and chrome driver dependencies for a Java based Selenium application

2 Upvotes

This is related to a maven 3.9.6-based and java 17-based selenium automation project used to log and download files from a remote site, it works fine as a nonotorized application.

This application uses the Chrome browser in headless mode. Currently, the Chrome drivers and relevant Maven versions are bundled with it in the application. The Chrome drivers have to match the Chrome browser for the Selenium operations to work without error. The Chrome browser version in the current server is 123.0.6312.86 and the drivers in drivers/chromedriver-linux64 are used. The Chrome drivers need to be updated if the Chrome browser is updated on the server. I have placed the report-automation.jar at the root level of the application during the build.

Currently, the Chrome browser should be installed on a server and is not bundled in the application in any way. The related Chrome drivers are only bundled in the application. how can this application be dockerized? should the Chrome browser and Chrome driver installation be handled in the docker file?

Given below is a sample docker file I created for this scenario. But the Chrome browser and Chrome driver-related sections need to be updated Could the docker file be optimized further to support containerization optimally?

Furthermore, the outcome of this application is to download a CSV report Downloaded-Report folder in the application. How can this operation be handled if the application is dockerized?

OS Version/build - Ubuntu 18.04 LTS
Docker Version - 24.0.2, build cb74dfc
Maven Version  - 3.9.6
Java Version   - 17.04
Chrome browser version - 123.0.6312.86

The currently used docker file is given below:

# Use the official OpenJDK 17 image as a base image
FROM maven:3.9.6-eclipse-temurin-17-alpine AS builder

# Set the working directory inside the container
WORKDIR /app
RUN chmod -R 777 /app

# Install tools.
RUN apk update && apk add --no-cache wget unzip

#######################
# Install Chrome.
# Adding Google Chrome repository
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community google-chrome-stable

#######################
# Download the Chrome Driver
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip \
    && unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
    && rm /tmp/chromedriver.zip
ENV PATH="/usr/local/bin:${PATH}"
#######################

# Copy the entire project (assuming Dockerfile is in the project root)
COPY . .

# Build the application using Maven
RUN mvn package -DskipTests

# Use the official OpenJDK 17 image as the final image
FROM eclipse-temurin:17.0.6_10-jdk@sha256:13817c2faa739c0351f97efabed0582a26e9e6745a6fb9c47d17f4365e56327d

# Set the working directory inside the container
WORKDIR /app

# Copy the JAR file and other necessary files to the container
COPY --from=builder /app/report-automation.jar /app/report-automation.jar
COPY --from=builder /app/src/main/resources/META-INF/MANIFEST.MF /app/META-INF/MANIFEST.MF
COPY --from=builder /app/src/main/resources/config.properties /app/config.properties
COPY --from=builder /app/pom.xml /app/pom.xml
COPY --from=builder /app/testng.xml /app/testng.xml
COPY --from=builder /app/application.properties /app/application.properties
COPY --from=builder /app/Configuration.xlsm /app/Configuration.xlsm
COPY --from=builder /app/apache-maven-3.9.6/ /app/apache-maven-3.9.6/
COPY --from=builder /app/Downloads /app/Downloads
COPY --from=builder /app/Downloaded-Report /app/Downloaded-Report
COPY --from=builder /app/Logs /app/Logs
COPY --from=builder /app/Reports /app/Reports
COPY --from=builder /app/drivers /app/drivers

# Expose the port (if your application listens on a specific port)
EXPOSE 8080

# Set the entry point for the container
ENTRYPOINT ["java", "-Xmx512m", "-Xms256m", "-jar", "report-automation.jar"]
# Use the official OpenJDK 17 image as a base image
FROM maven:3.9.6-eclipse-temurin-17-alpine AS builder

# Set the working directory inside the container
WORKDIR /app
RUN chmod -R 777 /app

# Install tools.
RUN apk update && apk add --no-cache wget unzip

#######################
# Install Chrome.
# Adding Google Chrome repository
RUN apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community google-chrome-stable

#######################
# Download the Chrome Driver
RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE)/chromedriver_linux64.zip \
    && unzip /tmp/chromedriver.zip -d /usr/local/bin/ \
    && rm /tmp/chromedriver.zip
ENV PATH="/usr/local/bin:${PATH}"
#######################

# Copy the entire project (assuming Dockerfile is in the project root)
COPY . .

# Build the application using Maven
RUN mvn package -DskipTests

# Use the official OpenJDK 17 image as the final image
FROM eclipse-temurin:17.0.6_10-jdk@sha256:13817c2faa739c0351f97efabed0582a26e9e6745a6fb9c47d17f4365e56327d

# Set the working directory inside the container
WORKDIR /app

# Copy the JAR file and other necessary files to the container
COPY --from=builder /app/report-automation.jar /app/report-automation.jar
COPY --from=builder /app/src/main/resources/META-INF/MANIFEST.MF /app/META-INF/MANIFEST.MF
COPY --from=builder /app/src/main/resources/config.properties /app/config.properties
COPY --from=builder /app/pom.xml /app/pom.xml
COPY --from=builder /app/testng.xml /app/testng.xml
COPY --from=builder /app/application.properties /app/application.properties
COPY --from=builder /app/Configuration.xlsm /app/Configuration.xlsm
COPY --from=builder /app/apache-maven-3.9.6/ /app/apache-maven-3.9.6/
COPY --from=builder /app/Downloads /app/Downloads
COPY --from=builder /app/Downloaded-Report /app/Downloaded-Report
COPY --from=builder /app/Logs /app/Logs
COPY --from=builder /app/Reports /app/Reports
COPY --from=builder /app/drivers /app/drivers

# Expose the port (if your application listens on a specific port)
EXPOSE 8080

# Set the entry point for the container
ENTRYPOINT ["java", "-Xmx512m", "-Xms256m", "-jar", "report-automation.jar"]

The application's hierarchical structure is mentioned below.

/workspace/report-automation$ tree -L 2
.
β”œβ”€β”€ apache-maven-3.9.6 //Bundled maven
β”‚Β Β  
β”œβ”€β”€ application.properties
β”œ
β”œβ”€β”€ Configuration.xlsm
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ Downloaded-Report
β”‚Β Β  └── SalesReport.csv  //Downloaded report
β”œβ”€β”€ Downloads
β”œβ”€β”€ drivers
β”‚Β Β  β”œβ”€β”€ chromedriver-linux64 //Bundled chrome drivers
β”‚Β Β  └── chromedriver-mac-arm64
β”œβ”€β”€ Logs
β”‚Β Β  └── TestLogs.log
β”œβ”€β”€ out
β”‚Β Β  └── artifacts
β”œβ”€β”€ pom.xml
β”œβ”€β”€ README.md
β”œβ”€β”€ report-automation.jar  // Applications jar file
β”œβ”€β”€ Reports
β”‚Β Β  └── ExtentReport.html
β”œβ”€β”€ src
β”‚Β Β  └── main
β”œβ”€β”€ target
β”‚Β Β  β”œβ”€β”€ classes
β”‚Β Β  β”œβ”€β”€ generated-sources
β”‚Β Β  β”œβ”€β”€ maven-archiver
β”‚Β Β  β”œβ”€β”€ maven-status
β”‚Β Β  β”œβ”€β”€ surefire-reports
β”‚Β Β  
└── testng.xml
/workspace/report-automation$ tree -L 2
.
β”œβ”€β”€ apache-maven-3.9.6 //Bundled maven
β”‚Β Β  
β”œβ”€β”€ application.properties
β”œ
β”œβ”€β”€ Configuration.xlsm
β”œβ”€β”€ Dockerfile
β”œβ”€β”€ Downloaded-Report
β”‚Β Β  └── SalesReport.csv  //Downloaded report
β”œβ”€β”€ Downloads
β”œβ”€β”€ drivers
β”‚Β Β  β”œβ”€β”€ chromedriver-linux64 //Bundled chrome drivers
β”‚Β Β  └── chromedriver-mac-arm64
β”œβ”€β”€ Logs
β”‚Β Β  └── TestLogs.log
β”œβ”€β”€ out
β”‚Β Β  └── artifacts
β”œβ”€β”€ pom.xml
β”œβ”€β”€ README.md
β”œβ”€β”€ report-automation.jar  // Applications jar file
β”œβ”€β”€ Reports
β”‚Β Β  └── ExtentReport.html
β”œβ”€β”€ src
β”‚Β Β  └── main
β”œβ”€β”€ target
β”‚Β Β  β”œβ”€β”€ classes
β”‚Β Β  β”œβ”€β”€ generated-sources
β”‚Β Β  β”œβ”€β”€ maven-archiver
β”‚Β Β  β”œβ”€β”€ maven-status
β”‚Β Β  β”œβ”€β”€ surefire-reports
β”‚Β Β  
└── testng.xml

This error is also thrown when the docker file is being built.

randunu@randunu:/rezsystem/workspace/report-automation$ sudo docker build -t report-automation .

[+] Building 358.0s (9/27)                                                                                                                                              
 => [internal] load build definition from Dockerfile                                                                                                               0.0s
 => => transferring dockerfile: 2.48kB                                                                                                                             0.0s
 => [internal] load .dockerignore                                                                                                                                  0.0s
 => => transferring context: 2B                                                                                                                                    0.0s
 => [internal] load metadata for docker.io/library/eclipse-temurin:17.0.6_10-jdk@sha256:13817c2faa739c0351f97efabed0582a26e9e6745a6fb9c47d17f4365e56327d           0.0s
 => [internal] load metadata for docker.io/library/maven:3.9.6-eclipse-temurin-17                                                                                  3.0s
 => [internal] load build context                                                                                                                                  0.1s
 => => transferring context: 51.39kB                                                                                                                               0.0s
 => CANCELED [builder 1/4] FROM docker.io/library/maven:3.9.6-eclipse-temurin-17@sha256:29a1658b1f3078e07c2b17f7b519b45eb47f65d9628e887eac45a8c5c8f939d4         354.9s
 => => resolve docker.io/library/maven:3.9.6-eclipse-temurin-17@sha256:29a1658b1f3078e07c2b17f7b519b45eb47f65d9628e887eac45a8c5c8f939d4                            0.0s
 => => sha256:408d89a73e0dc1b14cfbc003f5729720855da4003a266ebf841cf2c298a8d144 2.41kB / 2.41kB                                                                     0.0s
 => => sha256:5e5d1bccc5440d3a24f4a620704b9e687b4163c6c872fcc8e812e200c9bbac58 17.46MB / 17.46MB                                                                 120.0s
 => => sha256:29a1658b1f3078e07c2b17f7b519b45eb47f65d9628e887eac45a8c5c8f939d4 1.21kB / 1.21kB                                                                     0.0s
 => => sha256:b86805e902bf7f1eb3cd9d7f99f0cb391aacca9fe5653ba2c8279d2f0a4e2c23 7.91kB / 7.91kB                                                                     0.0s
 => => sha256:4a023cab5400feb5c1ab725beb8345ddb0e3200314004b56677a5eee2e8c86cf 30.44MB / 30.44MB                                                                 236.3s
 => => sha256:d59fd278c1b4ffe1727be6ccba42125e8f4db57e660e795cce19889d2c776457 61.87MB / 145.10MB                                                                354.9s
 => => sha256:c97285723537ab7921fca4d081c256e501adfdaa8992d04637992075f4cea392 173B / 173B                                                                       122.1s
 => => sha256:a3ba11f7aaaedad962216812fe84aee9061aeabac6932f0274a1d204eb96e8e8 734B / 734B                                                                       122.5s
 => => sha256:67f99c2668af1d0eced6d61dad057d7beffe543a8e8370d5c0d3fe8682e059a3 19.00MB / 19.00MB                                                                 275.5s
 => => sha256:45f480637770dbb740623c0c7f827d44bbacc9204faf3d07b4135d54a2bee043 9.48MB / 9.48MB                                                                   293.0s
 => => extracting sha256:4a023cab5400feb5c1ab725beb8345ddb0e3200314004b56677a5eee2e8c86cf                                                                          0.5s
 => => extracting sha256:5e5d1bccc5440d3a24f4a620704b9e687b4163c6c872fcc8e812e200c9bbac58                                                                          0.4s
 => => sha256:58c3491a14ebc973960cbda9f2eea22537785a3cb07e81487bd1115bad4a8278 852B / 852B                                                                       276.5s
 => => sha256:4712dfa85971124b8c3507fbba4c02441e5754f1517162926e600afd3fc5404b 358B / 358B                                                                       276.9s
 => => sha256:fc06d68d71ba375a9ceed165c0c04b09b1a8cc193146888663b005660fc25013 156B / 156B                                                                       277.4s
 => [stage-1  1/18] FROM docker.io/library/eclipse-temurin:17.0.6_10-jdk@sha256:13817c2faa739c0351f97efabed0582a26e9e6745a6fb9c47d17f4365e56327d                   0.0s
 => CACHED [stage-1  2/18] WORKDIR /app                                                                                                                            0.0s
 => ERROR [stage-1  3/18] RUN apt-get update &&     apt-get install -y wget unzip gnupg &&     wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.p  354.9s
------                                                                                                                                                                  
 > [stage-1  3/18] RUN apt-get update &&     apt-get install -y wget unzip gnupg &&     wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&     sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' &&     apt-get update &&     apt-get install -y google-chrome-stable &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*:                                                                                     
#0 1.293 Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]                                                                                                
#0 3.757 Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [129 kB]                                                                                      
#0 6.756 Get:3 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [44.7 kB]
#0 7.154 Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [128 kB]
#0 7.157 Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [2,118 kB]
#0 10.38 Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [127 kB]
#0 13.30 Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1,792 kB]
#0 25.08 Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [1,131 kB]
#0 34.61 Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [2,787 kB]
#0 53.25 Get:10 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
#0 60.66 Get:11 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
#0 65.24 Get:12 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
#0 300.8 Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [51.8 kB]
#0 301.5 Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [2,396 kB]
#0 323.5 Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [1,421 kB]
#0 332.4 Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [2,884 kB]
#0 352.6 Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [33.7 kB]
#0 353.4 Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [81.0 kB]
#0 354.0 Fetched 33.3 MB in 5min 54s (94.2 kB/s)
#0 354.0 Reading package lists...
#0 354.8 E: Problem executing scripts APT::Update::Post-Invoke 'rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true'
#0 354.8 E: Sub-process returned an error code
------
ERROR: failed to solve: executor failed running [/bin/sh -c apt-get update &&     apt-get install -y wget unzip gnupg &&     wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - &&     sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' &&     apt-get update &&     apt-get install -y google-chrome-stable &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*]: exit code: 100

any suggestions on how this issue may be handled?


r/SeleniumJava • • Jul 23 '24

Swipe to Learn Is POM Really Worth

2 Upvotes

Welcome to our latest video where we dive deep into the world of the Page Object Model (POM)! 🌟 Ever wondered if POM is truly the best choice for your project? πŸ€”

In this video, we break down the pros and cons of POM in a fun, energetic, and engaging way. From the advantages of reusable code and easy maintenance to the challenges of initial setup and complexity, we cover it all! πŸ“šβœ¨

πŸ” What You'll Learn:

  1. The Basics of POM – What is it, and why is it popular?

  2. Pros of Using POM – Discover how POM can make your life easier!

  3. Cons of Using POM – Learn about the potential pitfalls and how to avoid them.

  4. Final Verdict – Is POM the right choice for your project?

πŸ”” Don't Miss Out On:

  • Engaging visuals and playful characters to keep you entertained! 🎭

  • A balanced perspective on whether POM is overrated or underrated. βš–οΈ

  • Interactive moments where YOU decide what's best! πŸ—³οΈ

  • Subscribe for more insightful videos on software testing and development! πŸ–₯οΈπŸ””

  • Like and Share this video if you found it helpful! πŸ‘

  • Follow us on social media for the latest updates and tips!

πŸŽ₯ Watch Next:

Thank you for watching, and don’t forget to hit that subscribe button for more awesome content! πŸš€βœ¨

#POM #PageObjectModel #SoftwareTesting #AutomationTesting #Selenium #LearnWithUs #TechTips #CodingLife


r/SeleniumJava • • Apr 29 '24

DataProvider

2 Upvotes

I'm considering building a data provider for TestNG's @Test, with one set of data from Excel and another from a method returning data as a string array. Is there a way to merge them or a better approach to handle this scenario?


r/SeleniumJava • • Apr 09 '24

Java Selenium Project: Seeking Suggestions and Roadmap!

2 Upvotes

I am learning Java Selenium, and so far, I have learned the basics of it and the TestNG framework, Git, GitHub, and Jenkins. Now, I want to build a project to gain hands-on experience and also showcase it on my resume. However, I'm not sure where to start. Can anyone suggest a project topic and provide a roadmap for how I can build it, so I can showcase all my Selenium knowledge in that project? Thanks in advance


r/SeleniumJava • • Mar 10 '24

Seeking help on Java standards categorization

2 Upvotes

Hi everybody,

I am a part of a university research group studying open innovation processes within technology communities such as JCP.org. I have found it very fascinating that a large collection of companies with diverse sectors are able to collaborate on building the Java platform further with new JSRs every now and then.

Our research objective is to understand how the complexity of JSRs can lead to challenges in releasing these Java specs.

However, since I am not a #Java programmer and do not have much senior-level developer experience, I could come to this forum for a bit of insight. My job in my research at this moment is to categorize Java standards (JSRs listed on JCP) into high-level categories. I see that JSRs are categorized into ME, SE, and EE versions, etc., but I am looking for some deeper criteria. I spoke to a junior programmer but did not think he had the required expertise. Here is where I am currently:

I ask you all whether this categorization makes sense and suggest if I need to compress or expand the categories, assuming complexity varies across these categories.

  1. Core APIs: JSRs are developing fundamental APIs applicable across industries. Examples:

  1. Extension APIs: JSRs create additional APIs tailored for specific industries. Examples:

  1. Platform Extensions: JSRs are expanding Java platform capabilities for specific industries. Examples:

  1. Core Modifications: JSRs alter the entire platform's core structure for specific industries. Examples

  1. JCP Process Improvements: JSRs focus on enhancing the JCP process. Example:

Many thanks to everybody!! Very much appreciated.


r/SeleniumJava • • Oct 18 '23

Basic HTTP Authentication...

2 Upvotes

Has anyone found a workaround for this problem?


r/SeleniumJava • • Oct 04 '23

Selenium Automation 2F

2 Upvotes

Hey guys....I am using selenium python to automate ERP system but there is a 2F authentication which stops my automation. The 2F authentication usually requires the user to enter the SMS code they receive on their phone. Please let me know how I can bypass this?


r/SeleniumJava • • Mar 24 '23

I can't find the reason why the Window.frameElement is null. Any advice?

2 Upvotes

I've been stuck on this for some time and don't know how to proceed. I'm new to selenium and java, are there any resources you could recommend? Thanks


r/SeleniumJava • • Mar 22 '25

Can anyone please recommend any you tube channel or any source to create advanced level selenium framework.

1 Upvotes

r/SeleniumJava • • Nov 27 '24

Need help in mocking the request and response using selenium webdriver

1 Upvotes

Hi All, I am new to using selenium with Java as automation testing, so please help in below questions.

While automating a website after it goes to certain page, it has to click on a button then a list page will open. So while running manually, website UI is as expected but while running automation it's showing the default view. While debugging got to know that after clicking on button a request is being made and it's response is setting the list view visibility as Self serve but during automation this request is not being made and hence the list view comes in fallback category which set it's view as default.

Now I want to mock that request and mock the response too while running automation. Please help me on this topic as I don't have any experience senior to take help.

Thanks in Advance


r/SeleniumJava • • Oct 16 '24

Ayuda con SELENIUM JAVA

1 Upvotes

Hello, good afternoon/morning. I'm starting with automated testing at my job, and I'm using Java, Selenium, and Chromedriver. I'm having a problem: I want to get the text of a button and validate it in my code. The issue is that the button's identifier isn't the one shown in the Google inspector, and when I use it in my code and run the program, I get an error saying that the button identifier wasn't found. I've gone through every container, every div, but the problem remains. Just a small detail: the button is inside an iframe. When I copy the iframe identifier and use it in my code, there's no error in the console, but the text of the button on the webpage I'm testing doesn't appear, as if it wasn't found.

I hope someone can help me, I'd appreciate it very much. I'll include screenshots.

It is assumed that what is selected in blue is the identifier that shows the error in the eclipse console, the one used in the previous captures is the identifier of an iframe tag