0% found this document useful (0 votes)
2 views8 pages

devops -selenium

The document presents a DevOps lab presentation on Selenium, a tool for automated testing of web applications. It outlines the installation process, applications, limitations, and provides a simple test example using Java. The conclusion emphasizes Selenium's utility while acknowledging its limitations in speed and handling dynamic web elements.

Uploaded by

zunairasanober
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views8 pages

devops -selenium

The document presents a DevOps lab presentation on Selenium, a tool for automated testing of web applications. It outlines the installation process, applications, limitations, and provides a simple test example using Java. The conclusion emphasizes Selenium's utility while acknowledging its limitations in speed and handling dynamic web elements.

Uploaded by

zunairasanober
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 8

SHADAN WOMEN’S COLLEGE

OF ENGINEERING AND
TECHNOLOGY
DEVOPS LAB PRESENTATION

NAME : ZUNAIRA SANOBER

HALL.NO : 22L51A05C8

YEAR : B.TECH 3RD YEAR 1ST SEM

BRANCH :CSE-C
SELENIU
M
Selenium is a widely used tool for testing web-based applications that
checks if they are doing as expected. It is a prominent preference
amongst testers for cross-browser testing and is viewed as one of the
most reliable systems for web application automation evaluation.
Selenium is also platform-independent, so it can provide distributed
testing using the Selenium Network. Selenium is a powerful tool for
controlling web browsers through programs and performing browser
automation. It is functional for all browsers, works on all major OS and its
scripts are written in various languages.
EXPERIMENT NO.: 10. Install and Explore
Selenium for automated testing

AIM: Install and Explore Selenium for automated


testing

DESCRIPTION:
To install and explore Selenium for automated testing,
you can follow these steps:
Install Java Development Kit (JDK):
• Selenium is written in Java, so you'll need to install
JDK in order to run it. You can download and install JDK
from the official Oracle website.
Install the Selenium WebDriver:
• You can download the latest version of the Selenium
WebDriver from the Selenium website. You'll also need
to download the appropriate driver for your web
browser of choice (e.g. Chrome Driver for Google
Chrome).
Install an Integrated Development Environment
(IDE):
IntelliJ IDEA, and Visual Studio Code.
Write a simple test:
• Once you have your IDE set up, you can write a simple test using
the Selenium WebDriver.
Here's an example in Java:

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Main { public static void main(String[] args)
{ System.setProperty("webdriver.chrome.driver",
"path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://www.google.com");
System.out.println(driver.getTitle());
driver.quit();
}
}
• Run the test: Run the test using your IDE or from the command
line using the following command:
$ javac Main.java
$ java Main
Applications

•Automated Web Application Testing: Selenium is mainly


used for the automation testing of web applications across
different browsers and platforms.
•Cross-Browser Testing: It checks the compatibility of web
applications across various web browsers like Chrome,
Firefox, Safari, and Edge.
•Web Scraping: Automates the filter of the data from
websites for purposes such as data analysis and monitoring
with easy automation.
Limitations
•Cross-Browser Compatibility: Selenium can give regular best
results across multiple browsers, but sometimes it’s restricted in
that the web browsers understand and use the HTML and CSS
differently from the respective browsers.
•Slow Test Execution : Because the automation depends on the
various drivers with the browser that causes the process to slow.
Selenium will be slow to respond when running tests on big web
applications or websites
•Difficulty in Handling Dynamic Web Elements : Selenium
has difficulties in interacting with dynamic web elements like ID
that will change on a web page sometime which causes the test
script failure while testing the same.
Conclusion
Selenium tool will help test websites but it can be slow and
cause problems with some things like changing a
webpage. It is good to know its limits and use other tools
when needed.
THANK YOU

You might also like