Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Articles by Debomita Bhattacharjee
Page 14 of 59
How to automate instagram login page using java in selenium?
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 MoreWhy use Selenium WebDriver for Web Automation?
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 MoreWhy Selenium IDE is not used for dynamic Website testing?
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 MoreWhat are different Parameters available in Newman using Postman?
There are different parameters available in Newman. Newman's command to list down all options is − newman run –h. Options in Newman is grouped into categories listed below −UtilityBasic setupRequest optionsOther Misc. OptionsUtility-h, --help – displays usage information.-v, --version - displays version number.Basic Setup--folder [name of folder] – points to a folder in Collection for execution.-e, --environment [name of file| URL] - points to an Environment in the form of JSON file.-d, --iteration-data [file] – mentions a data file to utilize either csv or json.-n, --iteration-count [number] – specifies the count of iterations to.Request Options--delay-request [number] – configures delay in ...
Read MoreHow to automate gmail login process using selenium webdriver in java?
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 MoreHow to Generate API Documentation in Postman?
We can generate API Documentation in Postman. This is done by most of the companies to help the developers in understanding the behavior of an API and guide them. An API is usually created for internal use and for third party developers.The steps to create an API Documentation are given below −Step1 − Click on the arrow to the right of the Collection name in the sidebar. Then click on Add a description.Step2 − An input field shall come up. Type a description then click on the Save button.Step3 − Click on the three dots beside the Run button. Then ...
Read MoreHow to Monitor Collections in Postman?
A Postman Monitor is used to execute a Collection within the Postman cloud. It is used to determine the condition and the performance of the APIs.Monitors in Postman are designed on Collections.Monitors can be set up as frequently as every five minutes and can be configured with all the requests in a Collection. Also, there is an option to append Environment variables for the running of a Collection.Let us see how to create a Monitor Collection.Step1 − Click on the arrow beside the Collection name in the sidebar. Then click on Monitors.Step2 − Click on Create a Monitor. It is ...
Read MoreHow to automate google Signup form in Selenium using Python?
We can automate Google Signup form with Selenium webdriver in Python. To automate this page, we have to first launch the Google Signup page and identify each element on the form.Let us have a look at the Google Signup form −Examplefrom selenium import webdriver #set chromodriver.exe path driver = webdriver.Chrome(executable_path="C:\chromedriver.exe") #implicit wait driver.implicitly_wait(0.5) #launch URL driver.get("https://accounts.google.com/signup") #identify elements within form f = driver.find_element_by_id("firstName") f.send_keys("Test") l = driver.find_element_by_id("lastName") l.send_keys("One") u = driver.find_element_by_id("username") u.send_keys("test124ewin") p = driver.find_element_by_name("Passwd") p.send_keys("test124@") c = driver.find_element_by_name ("ConfirmPasswd") c.send_keys("test124@") #get value entered s = f.get_attribute("value") t = l.get_attribute("value") v = u.get_attribute("value") w = p.get_attribute("value") print("Values entered in form: ...
Read MoreHow does Selenium Webdriver handle SSL certificate in Chrome?
We can handle SSL certificate with Selenium webdriver in Chrome browser. A SSL is the standardized protocol used to create a connection between the browser and server.The information exchanged via a SSL certificate is encrypted and it verifies if the information is sent to the correct server. It authenticates a website and provides protection from hacking.An untrusted SSL certificate error is thrown if there are problems in the SSL certificate. We shall receive such an error while we launch a website. In Chrome, we use the ChromeOptions class to work with SSL certificates.We shall create an instance of this class ...
Read MoreHow to install Selenium package in Anaconda?
We can install the Selenium package in Anaconda. The conda has multiple packages so that it can be integrated with Selenium, Selenium-pytest, and so on from the below link − https://anaconda.org/searchA conda is a command line tool in the form of a package which is used for Anaconda.It has some similarities with pip. Selenium is present within the community based conda-forge channel available from the below link − https://anaconda.org/conda-forge/seleniumTo complete installation of this package, we can execute any of the below commands −conda install -c conda-forge seleniumconda install -c conda-forge/label/gcc7 seleniumconda install -c conda-forge/label/cf201901 seleniumconda install -c conda-forge/label/cf202003 selenium
Read More