- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Found 719 Articles for Testing Tools
7K+ Views
We can get the error - Element is not clickable at point while trying to click a link in Selenium webdriver. This is common in chromedriver as the Chrome browser determines an element with point location.When the position of an element is changing and we make an attempt to click on it, this error is encountered. This is because the element is present in DOM, but its position is not fixed on the page.There are some workarounds to fix this error as listed below −Adding the explicit wait. The webdriver can wait till the expected condition - visibilityOf(webdriver shall wait ... Read More
4K+ Views
We can keep a session alive for long Selenium scripts in automation. In Chrome browser, this can be achieved with the help of the ChromeOptions and Capabilities classes.Capabilities class can get the capabilities of the browser by using the method – getCapabilities. This technique is generally used for debugging a particular step in a scenario having a sizable amount of steps.First, let us try to input text in the highlighted edit box in the below page −Code Implementationimport org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.Capabilities; import org.openqa.selenium.By; import java.util.Map; import java.util.concurrent.TimeUnit; public class BrwSessionAlive{ public static void main(String[] args) ... Read More
834 Views
We can handle SSL certificates in Edge browser with Selenium webdriver. This is done with the help of the EdgeOptions class. We shall create an object of this class and set the parameter setAcceptInsecureCerts to the true value.Finally, this information has to be passed to the webdriver object to get the desired browser settings. An SSL is a protocol designed to establish a secured connection between the server and the browser.SyntaxEdgeOptions e = new EdgeOptions(); e.setAcceptInsecureCerts(true);Code Implementationimport org.openqa.selenium.WebDriver; import org.openqa.selenium.edge.EdgeDriver; import org.openqa.selenium.edge.EdgeOptions; public class EdgeBrwserSSL{ public static void main(String[] args) { System.setProperty("webdriver.edge.driver", "C:\Users\ghs6kor\Desktop\Java\msedgedriver.exe"); ... Read More
2K+ Views
We can automate Instagram login page with Selenium webdriver in Java. To achieve this, first we have to launch the Instagram login page and identify the elements like email, password and login with the findElement method and interact with them.Let us have the look at the Instagram login page −Code Implementationimport org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; public class InstagramLogin{ public static void main(String[] args) { System.setProperty("webdriver.gecko.driver", "C:\Users\ghs6kor\Desktop\Java\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); //implicit wait driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); //URL ... Read More
325 Views
Selenium webdriver is used widely for web automation. This because of the reasons listed below −Selenium webdriver comes without any cost and we do not need to buy a license for its usage. We can just download and start using it for automating the test cases.Selenium webdriver can be used to stimulate human-like actions like drag and drop, keypress, click and hold, and so on. This is done with the help of the Actions class.Selenium webdriver has a very friendly API which makes it easier for the users.Selenium webdriver can support multiple languages like Java, Python, JavaScript, C# and so ... Read More
554 Views
Selenium IDE is not used for dynamic testing. It can be used for a quick solution for a simple automation scenario, but not for developing an entire regression suite. The reasons for doing so are listed below −Selenium IDE is a Firefox plugin and hence mostly compatible with only Firefox browser.Selenium IDE is majorly used for prototyping purpose and can be used to automate static web pages only. There can be multiple issues if we try to test a dynamic page with Selenium IDE.Instead of Selenium IDE, Selenium webdriver can be used since it provides a programming interface to identify ... Read More
12K+ Views
We can automate the Gmail login process using Selenium webdriver in Java. To perform this task, first we have to launch the Gmail login page and locate the email, password and other elements with the findElement method and then perform actions on them.Let us have the look at the Gmail login page −Code Implementationimport org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; public class GmailLogin{ public static void main(String[] args) { System.setProperty("webdriver.gecko.driver", "C:\Users\ghs6kor\Desktop\Java\geckodriver.exe"); WebDriver driver = new FirefoxDriver(); //implicit wait driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS); ... Read More
274 Views
We can use Selenium IDE with the help of the Firefox browser. The steps required to install it are listed below −Step1 − Open the Firefox browser and launch the URL − https://addons.mozilla.org/en-US/firefox/addon/selenium-ide/..Step2 − Click on the Add to Firefox button.Step3 − A browser pop-up gets opened. Click on Add.Step4 − The success message - Selenium IDE has been added to Firefox gets displayed along with the Selenium IDE icon created on the browser menu.Step5 − Click on the icon, to launch the Selenium IDE.
2K+ Views
What is Static Testing?Static testing is a software testing methodology used to look for faults in software applications without running the program. Static testing is used to prevent problems at an early stage of development since it is easier to notice and correct faults at this point. It also aids in the detection of faults that Dynamic Testing may miss.Dynamic Testing, on the other hand, examines an application while the code is executed.Static testing methodologies are classified into two groups −Manual examinations − Manual examinations contain manual code analysis, often called REVIEWS.Automated analysis using tools − Automated analysis is essentially ... Read More
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