Debomita Bhattacharjee has Published 870 Articles

HTTP basic authentication URL with “@” in password

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 04-Mar-2024 13:00:52

48K+ Views

We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL.Let us make an attempt to handle the below browser authentication.Once the User Name and Password are entered ... Read More

Handling Browser Authentication using Selenium

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 04-Mar-2024 12:39:14

4K+ Views

We can handle browser authentication with Selenium webdriver. We have to pass the credentials appended with the URL. The username and password must be added with the format: https://username:password@URL. Let us make an attempt to handle the below browser authentication.Once the User Name and Password are entered correctly and the ... Read More

How to find an element using the attribute “class name” in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Nov-2023 00:26:04

20K+ Views

We can find an element using the attribute class name with Selenium webdriver using the locators - class name, css, or xpath. To identify the element with css, the expression should be tagname[class='value'] and the method to be used is By.cssSelector. To identify the element with xpath, the expression should ... Read More

What is the difference between relative and absolute XPath in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Nov-2023 00:02:51

22K+ Views

We can have two ways of creating an xpath – relative and absolute. The absolute xpath has the complete path beginning from the root to the element which we want to identify.An absolute xpath starts with the / symbol. One drawback with the absolute xpath is that if there is ... Read More

Scroll Element into View with Selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 31-Oct-2023 03:48:50

20K+ Views

We may need to perform action on an element which is not present in the viewable area of the page. We need to scroll down to the page in order to reach that element.Selenium cannot perform scrolling action directly. This can be achieved with the help of Javascript Executor and ... Read More

Typing Enter/Return key in Selenium.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 31-Oct-2023 03:01:12

20K+ Views

We can type Enter/Return key in Selenium. We shall use the sendKeys method and pass Keys. ENTER as an argument to the method. Also, we can use pass Keys. RETURN as an argument to the sendKeys method for the same purpose.To use the Keys class, we have to incorporate import ... Read More

How to resolve exception Element Not Interactable Exception in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Oct-2023 13:04:10

21K+ Views

We can resolve the exception – ElementNotInteractableException with Selenium webdriver. This exception is thrown if a webelement exists in DOM but cannot be accessed. The below image shows an example of such an exception.If a specific webelement is overspread by another webelement we normally get this exception. To fix this, ... Read More

How to use xPath in Selenium WebDriver to grab SVG elements?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 15-Sep-2023 01:19:53

26K+ Views

We can use xpath to grab SVG elements with Selenium Webdriver. A SVG element is identified with tagname svg. The svg image has the attributes like width and height attributes.Let us investigate the html code of a svg element.To create a xpath for a svg element, we have the syntax ... Read More

How to wait until an element is present in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 15-Sep-2023 00:54:08

23K+ Views

We can wait until an element is present in Selenium Webdriver. This can be done with the help of synchronization concept. We have an explicit wait condition where we can pause or wait for an element before proceeding to the next step.The explicit wait waits for a specific amount of ... Read More

How to create a PUT request in Postman?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 14-Sep-2023 01:41:28

27K+ Views

A Postman PUT request is used to pass data to the server for the creation or modification of a resource. The difference between POST and PUT is that POST request is not idempotent.This means invoking the same PUT request numerous times will always yield the same output. But invoking the ... Read More

1 2 3 4 5 ... 87 Next
Advertisements