Debomita Bhattacharjee has Published 863 Articles

Start safari with extension using safariDriver in selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Jan-2021 11:55:34

811 Views

We can start Safari with extension using SafariDriver in Selenium webdriver. Safari is a prominent browser and is provided by default by Apple devices. For Safari versions 10 and greater than 10, the safaridriver comes automatically and is not required to be installed separately.The location of the SafariDriver is: /usr/bin/safaridriver. ... Read More

What's the relationship between Selenium RC and WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Jan-2021 11:51:54

264 Views

There is a relationship between Selenium RC and Selenium webdriver. Prior to the introduction of Selenium webdriver, there was extensive usage of Selenium RC.Both the tools, supported automation tests to be executed in multiple browsers. Also, multiple programming languages can be used to implement the test cases. However, there are ... Read More

Browser Plugin Testing With Selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Jan-2021 11:50:09

778 Views

We can perform browser plugin testing with Selenium webdriver. We can have single or multiple extensions of the Chrome browser while we manually open the browser and work on it.However, while the Chrome browser is opened through Selenium webdriver, those extensions which are available to the local browser will not ... Read More

How to maximize the browser window in Selenium WebDriver using C#?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 30-Jan-2021 11:47:14

1K+ Views

We can maximize the browser window with Selenium webdriver in C#. This can be done with the help of the Maximize method. We shall launch the browser and then apply this method on the driver object.Syntaxdriver.Manage().Window.Maximize();For implementation we shall be using the NUnit framework.Exampleusing NUnit.Framework; using OpenQA.Selenium; using OpenQA.Selenium.Firefox; using ... Read More

Selenium testing without browser.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:53:38

7K+ Views

We can perform Selenium testing without a browser. This is achieved by triggering the execution in a headless mode. The headless execution can decrease the utilization of key resources and is being adopted widely.For triggering headless execution in Chrome, the ChromeOptions class is utilized to modify the default browser characteristics. Headless is ... Read More

How do I pass options to the Selenium Chrome driver using Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:52:04

2K+ Views

We can pass options to the Selenium Chrome driver using Python. This can be with the help of the ChromeOptions and the DesiredCapabilities class. For the ChromeOptions, we have to create an object for that class.Then we shall take the help of the add_argument method and pass the option we ... Read More

How to save and load cookies using Python Selenium WebDriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:50:49

2K+ Views

We can save and load cookies with Selenium webdriver in Python. A cookie is an information saved by the browser about the application. A cookie is stored in a key value pair.It is generally used to hold the credentials of users. It also stores information about the user actions on ... Read More

How to send cookies with selenium webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:49:12

744 Views

We can send cookies with Selenium webdriver. A cookie is stored in a key value pair. First, we have to add cookies, then can delete them. We can also get the cookies.Also, we have to add import org.openqa.selenium.Cookie statement for cookie implementations.SyntaxCookie ck = new Cookie("Automation", "QA"); driver.manage().addCookie(ck); driver.manage().getCookies(); driver.manage().deleteAllCookies();ExampleCode ... Read More

Downloading file to specified location with Selenium and python.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:47:25

7K+ Views

We can download files to a specified location with Selenium in Python. This is done by the help of the ChromeOptions class. We shall set the preferences of the browser and pass the download.default_directory parameter.We need to mention the path of the download directory with that parameter. This preference is sent ... Read More

How to click Allow on Show Notifications popup using Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Dec-2020 13:45:46

5K+ Views

We can click Allow on show notification pop-up in Selenium webdriver.These are messages from the website and often called as web push notification.This can be handled with the browser settings.This is done with the help of the ChromeOptions class. We shall create an object of it and apply the addArguments method on ... Read More

Advertisements