Debomita Bhattacharjee has Published 867 Articles

How to use MSTest Annotations in specflow c#?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:37:49

437 Views

We can use MSTest annotations in SpecFlow C# in hooks. Hooks are event bindings to add more automation logic at certain steps. For example, for any step which is needed to be run before a specific Scenario. To introduce hooks in the code we have to add the [Binding] attribute.Hooks ... Read More

Gmail login fail using Selenium webdriver. Showing element not found for password.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:35:14

678 Views

We can encounter Gmail login failure while using Selenium webdriver due to the error - element not found for password. This can be fixed by the methods listed below −Adding implicit wait - Implicit wait is applied to instruct the webdriver for polling the DOM(Document Object Model) for a specific ... Read More

How to scroll the Page up or down in Selenium WebDriver using java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:29:01

6K+ Views

We can scroll the page up or down in Selenium webdriver using Java. This is achieved with the help of the Actions class. First of all, we have to create an object of this Actions class and then apply the sendKeys method to it.Now, to scroll down a page, we ... Read More

What is Stale Element Reference Exception in Selenium Webdriver & How To Fix It?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:25:24

1K+ Views

We may encounter StaleElementReferenceException while working with Selenium webdriver. We can fix the StaleElementReferenceException in the Selenium webdriver. The term stale means something which is not fresh and decayed. Thus a stale element points to an element that is not present anymore.There may be a case when an element was ... Read More

How can I manually set proxy settings in Python Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:18:52

1K+ Views

We can manually set proxy settings using Selenium webdriver in Python. It is done using the DesiredCapabilities class. We would create an object of this class and apply the add_to_capabilities method to it. Then pass the proxy capabilities as a parameter to this method.ExampleCode Implementationfrom selenium import webdriver from selenium.webdriver.common.proxy ... Read More

How to use a specific chrome profile in selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:17:05

13K+ Views

We can use a specific Chrome profile in Selenium. This can be done with the help of the ChromeOptions class. We need to create an object of this class and then apply addArguments method on it.The path of the specific Chrome profile that we want to use is passed as ... Read More

How do you automatically download a Pdf with Selenium Webdriver in Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:14:21

2K+ Views

We can automatically download a pdf with the Selenium webdriver in Python. A file is downloaded in the default path set in the Chrome browser. However, we can modify the path of the downloaded file programmatically in Selenium.This is done with the help of the Options class. We have to ... Read More

What is JSON parsing in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:09:14

11K+ Views

We can parse JSON Response with Rest Assured. To parse a JSON body, we shall use the JSONPath class and utilize the methods of this class to obtain the value of a specific attribute.We shall first send a GET request via Postman on a mock API URL and observe the ... Read More

How to validate XML response in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:05:43

6K+ Views

We can validate XML response in Rest Assured. For obtaining an XML response, we have to pass the parameter ContentType.XML to the accept method. We shall first send a GET request via Postman on a mock API URL.Using Rest Assured, we shall validate its XML Response containing the name of ... Read More

How to validate the response time of a request in Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 18-Nov-2021 11:00:55

3K+ Views

We can validate the response time of a request in Rest Assured. The time elapsed after a request is sent to the server and then receiving the response is known as the response time.The response time is obtained in milliseconds by default. To validate the response time with Matchers, we ... Read More

Advertisements