Debomita Bhattacharjee has Published 867 Articles

Verifying whether an element present or visible in Selenium Webdriver

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 12-Sep-2023 01:07:53

32K+ Views

We can verify whether an element is present or visible in a page with Selenium webdriver. To check the presence of an element, we can use the method – findElements.The method findElements returns a list of matching elements. Then, we have to use the method size to get the number ... Read More

How install Selenium Webdriver with Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 28-Aug-2023 12:48:32

28K+ Views

We can install Selenium Webdriver with Python with the following steps.In Linux or MacOS, Python is installed by default. However, in Windows, we have to download Python from the link https://www.python.org/downloads/.Click on "Download Python " button. Once the download is completed, the Python executable file gets saved in our system. ... Read More

How to click button Selenium Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 24-Aug-2023 21:24:12

42K+ Views

We can click a button with Selenium webdriver in Python using the click() method. First, we have to identify the button to be clicked with the help of any locators like id, name, class, xpath, tagname, or css.Then we have to apply the click() method on it. A button in ... Read More

What are the Actions class in Selenium?

Debomita Bhattacharjee

Debomita Bhattacharjee

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

520 Views

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

949 Views

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

6K+ Views

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 , then click on the link with the .tgz file(to download) as highlighted below −Step3 − Click on the downloaded file, a folder named: ... Read More

Using XPATH to search text containing  

Debomita Bhattacharjee

Debomita Bhattacharjee

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

12K+ Views

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

2K+ Views

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

862 Views

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

8K+ Views

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

Advertisements