Debomita Bhattacharjee has Published 872 Articles

How to handle frames in Selenium Webdriver in Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 11:21:12

We can handle frames in Selenium webdriver in Python. An iframe is identified with a tag in an html document. An iframe is an html document containing elements that reside inside another html document. Let us see an html document of a frame.The following methods help to switch between ... Read More

How to interact with hidden elements in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 11:19:22

We can interact with hidden elements in Selenium Webdriver. The hidden elements are the ones that are present in the DOM but not visible on the page. Mostly the hidden elements are defined by the CSS property style="display:none;". In case an element is a part of the form tag, it ... Read More

How to get an attribute value of an element in Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 11:15:19

We can get an attribute value of an element in the Selenium Webdriver. This is achieved with the help of the getAttribute method. In an html document, each element is identified with its tagname along with the element attributes with their values. To get an attribute value, we have to ... Read More

How to upload files using Selenium Webdriver?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 11:00:22

We can upload files using Selenium Webdriver. This is achieved by the sendKeys method. We have to first identify the element which performs the file selection by mentioning the file path [to be uploaded].This is only applied to an element having a type attribute set to file as a value ... Read More

Selenium WebDriver With Java Quickstart.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:56:04

We can work with Selenium webdriver with Java Quickstart template. This can be done by following the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with ... Read More

How to execute a Javascript using Selenium in Python?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:48:51

We can run Javascript in Selenium webdriver with Python. The Document Object Model communicates with the elements on the page with the help of Javascript. Selenium executes the Javascript commands by taking the help of the execute_script method. The commands to be executed are passed as arguments to the method.Some ... Read More

Selenium RC vs Selenium webdriver.

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:46:47

The differences between Selenium RC and Webdriver are listed below −FeaturesSelenium WebdriverSelenium RCArchitectureNot acquired from Javascript.Acquired from Javascript.ServerNo server is needed to begin test case execution.The server is needed to begin test case execution.Object- OrientedIt is used widely for object-oriented programming.It is moderately used for object-oriented programming.BrowserIt can test all ... Read More

How to run tests using a test runner file for Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:45:09

We can run tests using a test runner file for Cucumber. The test runner file should contain the path of the feature file and step definition file that we want to execute.Code Implementation of the Feature fileFeature − Login ModuleScenario − Welcome Page Login verificationGiven User is on Welcome PageThen Welcome ... Read More

How to create a test runner file for Cucumber in Java?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:41:14

We can create a test runner file for Cucumber. This can be done using the below steps −Step1− Click on the File menu in Eclipse. Then select the option New. Next click on Other.Step2− Click on Maven Project from the Maven folder. Then click on Next.Step3− Proceed with the further ... Read More

How to auto-generate a step definition to a feature file in Cucumber?

Debomita Bhattacharjee

Debomita Bhattacharjee

Updated on 22-Nov-2021 10:37:29

We can auto-generate a step definition file to a feature file in Cucumber. This can be done by using the Tidy Gherkin plugin which is available as a Chrome extension.Step1− Navigate to the below link to access the Tidy Gherkin plugin.https://chrome.google.com/webstore/detail/tidygherkin/ nobemmencanophcnicjhfhnjiimegjeo?hl=en-GBStep2− Then click on the Add to Chrome button.Step3− ... Read More

Advertisements