Automation Testing Articles

Page 2 of 62

Wait for complex page with JavaScript to load using Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 3K+ Views

We can wait for a complex page with JavaScript to load with Selenium. After the page is loaded, we can invoke the Javascript method document.readyState and wait till complete is returned. Understanding document.readyState The document.readyState property returns the loading status of the document. It has three possible values: loading - The document is still loading interactive - Document has finished loading but sub-resources may still be loading complete - The document and all sub-resources have finished loading Syntax JavascriptExecutor js = (JavascriptExecutor)driver; js.executeScript("return document.readyState").toString().equals("complete"); Method 1: Using document.readyState Check ...

Read More

How to get the value of the edit box in Selenium?

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 647 Views

In Selenium WebDriver, retrieving values from edit boxes (input fields) requires specific methods since getText() often returns empty strings for input elements. Here are the most effective approaches to extract values from edit boxes. Why getText() May Not Work The getText() method retrieves visible text content, but input fields store their values in the "value" attribute rather than as text content. This is why getText() often returns empty strings for input elements. Method 1: Using getAttribute("value") The most reliable approach is using the getAttribute() method to retrieve the "value" attribute: import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; ...

Read More

Differences between Interface and Integration Testing.

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 2K+ Views

Testing is crucial in software delivery, as it validates quality and helps developers improve their product. Two important testing types are Integration Testing and Interface Testing. Integration testing verifies that multiple components work together correctly, while interface testing focuses on the communication channels (APIs, web services) between those components. Integration Testing Integration testing is performed after unit testing to verify that individual components work correctly when combined in an integrated environment. It tests the end-to-end functionality of all components working together. Integration testing can be done in several approaches − Big Bang (all at once), Top-Down, Bottom-Up, or ...

Read More

Getting console.log output from Chrome with Selenium Python API bindings.

Akshitha Mote
Akshitha Mote
Updated on 22-Jan-2025 6K+ Views

We can get console.log output from Chrome with Selenium Python API bindings. We will perform this with the DesiredCapabilities class. We shall enable logging from the browser with DesiredCapabilities.Chrome setting. We have to pass this browser capability to the driver object by passing it as a parameter to the Chrome class. To enable logging we shall set the property goog:loggingPrefs of the browser to 'browser':'ALL'. Syntax Syntax:dc = DesiredCapabilities.CHROME dc['goog:loggingPrefs'] = { 'browser':'ALL' } driver = webdriver.Chrome(desired_capabilities=dc) Example from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities #set browser log dc = DesiredCapabilities.CHROME dc['goog:loggingPrefs'] = { 'browser':'ALL' } driver ...

Read More

GUI Testing Tutorial: User Interface (UI) Test Cases with Examples

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 8K+ Views

What is a GUI? For a computer application, there are two sorts of interfaces. The Command Line Interface (CLI) is a program that allows you to write text and have the computer reply to it. The Graphical User Interface (GUI) is a method of interacting with a computer that uses graphics rather than words. The following are some of the graphical user interface components that may be used to interact with the application − Radio Button ...

Read More

What is Operational Acceptance Testing (OAT)? Example Test Cases

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 3K+ Views

Operational Acceptance Testing (OAT) or Operational Testing is non-functional testing conducted before releasing an application to the production stage. It comes after the user acceptance testing and before releasing the app in the market. The primary purpose of this testing is to check the operational readiness of application software.The whole process comprises of a series of tasks such as −Installation testingRobustness of the appData integrityCode analysisSecurity testingNetwork installationRecovery testingProcedure verifications like security, support, alerts, and stressThe Importance of Operational TestingRegardless of how much time and money you spend in testing software, it doesn't ensure 100 reliability, robustness, and error-free. Testing ...

Read More

What is Negative Testing(Test cases with Example)?

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 2K+ Views

Negative TestingNegative testing is a kind of software testing that examines the software program for unforeseen input data and situations. Unusual data or situations might range from incorrect data types to a powerful cybersecurity breach. The goal of negative testing is to keep software applications from malfunctioning as a result of negative inputs and to enhance quality and stability.We can only ensure that our technology works in regular situations by doing positive testing. To create an error-free system, we must guarantee that our system can manage unforeseen situations.You will learn the following in this tutorial −What is Negative Testing?Example of ...

Read More

What is Regression Testing? (Definition, Test Cases, Examples)

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 4K+ Views

What is Regression Testing and How Does it Work? Regression testing is a sort of testing that is used to ensure that a software update does not affect the product's current functioning. This is to guarantee that any new functionality, bug patches, or modifications to current features don't break the product. In order to validate the effect of the modification, previously performed test cases are re-executed. Regression Testing is a sort of Software Testing in which test cases are re-run to see whether the application's prior functionality is still functioning and if the new changes have caused any new defects. ...

Read More

How to click on a link in Selenium with python?

SaiKrishna Tavva
SaiKrishna Tavva
Updated on 10-Sep-2024 8K+ Views

We can click on a link on page with the help of locators available in Selenium. Link text and partial link text are the locators generally used for clicking links. Both these locators work with the text available inside the anchor tags. Link Text: In Selenium a link text is used to hyperlinks on a web page, to create the hyperlinks on a webpage, we can use anchor tag followed by link Text. ...

Read More

HTTP basic authentication URL with “@” in password

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 04-Mar-2024 68K+ Views

We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL.Let us make an attempt to handle the below browser authentication.Once the User Name and Password are entered correctly and the OK button is clicked, we should be navigated to the actual page with the text Congratulations! You must have the proper credentials.Syntaxhttps://username:password@URL https://admin:admin@the-internet.herokuapp.com/basic_auth Here, the username and password value is admin. URL is www.the-internet.herokuapp.com/basic_auth Example import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class BrwAuthnPopup{ ...

Read More
Showing 11–20 of 618 articles
« Prev 1 2 3 4 5 62 Next »
Advertisements