Found 719 Articles for Testing Tools

Selenium - Element is not clickable at point

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:04:09

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

How do I keep a session alive for long Selenium scripts in automation?

Debomita Bhattacharjee
Updated on 25-Jun-2021 13:00:32

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

How does Selenium Webdriver handle the SSL certificate in Edge?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:58:44

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

How to automate instagram login page using java in selenium?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:57:53

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

Why use Selenium WebDriver for Web Automation?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:56:44

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

Why Selenium IDE is not used for dynamic Website testing?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:56:06

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

How to automate gmail login process using selenium webdriver in java?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:54:15

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

How to use Selenium IDE?

Debomita Bhattacharjee
Updated on 25-Jun-2021 12:53:23

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.

What is Static Testing & Testing Review?

Vineet Nanda
Updated on 09-Jun-2021 12:56:43

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

What is Negative Testing(Test cases with Example)?

Vineet Nanda
Updated on 09-Jun-2021 12:50:16

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

Advertisements