SeleniumHQ / selenium

A browser automation framework and ecosystem.
https://selenium.dev
Apache License 2.0
30.37k stars 8.15k forks source link

[🐛 Bug]: #14543

Closed kaviya-k559 closed 1 hour ago

kaviya-k559 commented 1 hour ago

What happened?

STQA assignment 2.docx

How can we reproduce the issue?

WebDriver driver = new Chrome Driver();
driver.get("http://example-ecommerce.com");
driver.findElement(By.name("q")).sendKeys("Laptop");
driver.findElement(By.id("searchBtn")).click();
List<WebElement> results = driver.findElements(By.className("product-title"));
boolean found = results.stream().anyMatch(result -> result.getText().contains("Laptop"));
Assert.assertTrue(found, "Laptop was not found in search results.");

Relevant log output

Automating the search functionality ensures that the feature works correctly across different product searches. This saves time in verifying one of the most critical e-commerce functionalities

Operating System

Windows 10j

Selenium version

java 4.0.0

What are the browser(s) and version(s) where you see this issue?

chrome 90

What are the browser driver(s) and version(s) where you see this issue?

chromeDriver 94.0.4606.61

Are you using Selenium Grid?

4.0.0

github-actions[bot] commented 1 hour ago

@kaviya-k559, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

Triage this issue by using labels.

If information is missing, add a helpful comment and then I-issue-template label.

If the issue is a question, add the I-question label.

If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted label.

If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C), add the applicable G-* label, and it will provide the correct link and auto-close the issue.

After troubleshooting the issue, please add the R-awaiting answer label.

Thank you!

github-actions[bot] commented 1 hour ago

💬 Please ask questions at: