Debomita Bhattacharjee has Published 896 Answers

What are the Actions class in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 11:03:54

Selenium can perform mouse movements, keypress, hovering on an element, drag and drop actions, and so on with the help of the ActionsChains class. We have to create an instance of the ActionChains class which shall hold all actions in a queue.Then the method - perform is invoked which actually ... Read More

How to use CSS selector as a locator in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:59:14

We can locate elements with locator CSS Selector in Selenium webdriver. The general expression to create a CSS expression is tagname[attribute='value']. We can utilize the id and class attributes to create a CSS.With id, the syntax of a CSS expression is tagname#id. For instance, for a CSS expression - input#txt-loc, ... Read More

Explain JMeter installation in macOS

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:53:02

JMeter installation is done in MacOS by following the below steps −Step1 − Navigate to the below URL −https://jmeter.apache.org/download_jmeter.cgiStep2 − Navigate to the section Apache JMeter <version number>, then click on the link with the .tgz file(to download) as highlighted below −Step3 − Click on the downloaded file, a folder ... Read More

Using XPATH to search text containing &nbsp

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:47:25

We can use the locator xpath to identify elements having search text with   or spaces. Let us first examine the html code of a web element having trailing and leading spaces. In the below image, the text JAVA BASICS with tagname strong has spaces as reflected in the html ... Read More

How to get rid of Firefox logging in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:44:56

After the execution of tests, there are logs generated because of Firefox logging in with geckodriver. This log generation by Firefox can be disabled by certain parameters setting.We can stop these logs from being recorded in the console and capture them in a different file. This is achieved with the ... Read More

How to determine colors using Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:30:22

Selenium has the color conversion support class. We have to add the statement from selenium.webdriver.support.color import Color to convert colors to rgba/hex format.Examplefrom selenium import webdriver from selenium.webdriver.support.color import Color #color conversion to rgba format print(Color.from_string('#00fe37').rgba) #color conversion to hex format print(Color.from_string('rgb(1, 200, 5)').hex) #color conversion to ... Read More

What is Rest Assured?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:07:35

Rest Assured is used to verify the REST APIs with the help of the Java library. Java library acts like a headless client to act upon the Rest web services. The libraries based on the Rest Assured library are also capable of validating the HTTP responses from the server.Response status ... Read More

How to create record and playback scripts in JMeter using the Chrome browser?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 10:04:29

We can create record and playback scripts in JMeter using the Chrome browser with the help of the BlazeMeter extension. To get the extension, navigate to the below link −https://chrome.google.com/webstore/detail/blazemeter-thecontinuous/ mbopgmdnpcbohhpnfglgohlbhfongabi?hl=enThen click on Add to Chrome.After BlazeMeter has been added to our Chrome browser, it should appear on the menu ... Read More

What do you mean by performance testing?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 08-Feb-2022 09:54:42

The performance testing is done to verify if the application under test is working as per expectation under a specific workload. One of the most commonly used performance testing methods is known as load testing.Let us take an example of an e-commerce site like Amazon, Flipkart, and so on. A ... Read More

How to obtain the tagname of the parent element in Selenium webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 11:38:56

We can obtain the tagname of the parent element in Selenium webdriver. First of all, we need to identify the child element with help of any of the locators like id, class, name, xpath, or CSS. Then we have to identify the parent with the findElement(By.xpath()) method.We can identify the ... Read More

1 2 3 4 5 6 7 ... 90 Next
Advertisements