Video summary
Selenium Webdriver with Java Session #2 webdriver installation and configuration in Hindi
Main summary
Key takeaways
Summary of the video (Selenium WebDriver + Java Session #2, Hindi)
1) Web server / WebDriver architecture concepts
The session begins with an explanation of Selenium WebDriver architecture, focusing on how client libraries communicate with browser drivers using standard web protocols (noted as HTTP in the subtitles).
Key concepts:
- Each browser has its own driver, for example:
- ChromeDriver for Chrome
- Safari Driver for Safari
- Flow described:
- Selenium client libraries send automation commands via the protocol to the browser driver.
- The browser driver communicates with its specific browser and performs actions according to the automation script/test case.
2) Selenium 3 vs Selenium 4 architecture difference (major analysis)
The video compares the two major architecture approaches:
-
Selenium 3
- Uses a JSON protocol (mentioned in the subtitles as JSON-based communication).
-
Selenium 4
- Removes the JSON protocol and replaces it with the W3C standard.
- Emphasis: W3C is an international web development standard.
- Claimed benefit: more consistent communication between browser drivers and browsers by aligning with the W3C model.
3) Installing Selenium (Java) + dependencies setup (guide/tutorial)
The steps include:
- Download the Selenium Java client library from the official website (links referenced in the description).
- Download the Selenium “Java” bindings (choosing the Java client-side download as mentioned in the subtitles).
- After downloading:
- Copy/extract the files into the project directory in the IDE.
4) IDE setup and adding Selenium libraries to a Java project (Eclipse-like workflow)
The tutorial uses an IDE workflow similar to Eclipse/Java IDE:
- Create a new project.
- Add Selenium JARs to the project build path / dependencies.
- Mentions using an option such as:
- “Add External JARs” (associating JARs with the project)
It also mentions Maven-style dependency configuration:
- Uses
dependencytags (noted as specifying group/artifact and version). - Example dependency discussed includes:
- Selenium Java client artifact (roughly: selenium-java)
- A version number (subtitles mention Selenium 3.0, though the exact value is unclear)
5) Writing a Selenium automation test (Chrome example)
A “first test case” demonstrates:
- Launch Chrome
- Navigate to:
https://google.com - Capture and print:
- Page title
- URL
- Page source (using a “get page source” type method)
Core driver usage described:
- Set ChromeDriver path using a system property:
System.setProperty("webdriver.chrome.driver", "<path>")
- Instantiate the driver:
WebDriver driver = new ChromeDriver();
It also shows:
- Printing outputs
- Navigation and retrieval methods such as:
- Navigate using
driver.get(<url>) - Title retrieval using
driver.getTitle() - (Interview section also mentions current title retrieval)
- Navigate using
6) Driver configuration / executing and verifying the test
After writing the code, the video describes running the test:
- Chrome opens automatically
- Google loads
- Title/URL/page source are printed
- Output confirms the automation script is working as expected
7) Interview Q&A (quick guide of common Selenium questions)
The video concludes with common interview questions about Selenium WebDriver, including:
-
How to launch a browser using WebDriver?
- Use
System.setPropertyfor the driver - Create the correct driver object (e.g., ChromeDriver for Chrome)
- Use
-
How to open a webpage?
- Use
driver.get(url)/ navigation methods
- Use
-
Get vs navigate (sequence/behavior question)
- The subtitles claim differences in behavior (wording is unclear), specifically comparing method behavior and page-loading/waiting characteristics.
-
Explain Selenium architecture
- Differences between Selenium 3 (JSON) and Selenium 4 (W3C)
-
Commands to capture page title
getTitle()and a method likegetCurrentTitle()
Main speakers / sources
- Primary speaker: Raju Gupta (mentioned at the start: “Hello hi Raju Gupta welcome…”)
- Content source: The speaker’s own YouTube tutorial series; download/dependency setup references Selenium’s official website.