Not able to create object of ExtentReports

I am new to extent reporting. I am using Selenium Webdriver and want to use Extent reports with it. But my code is not able to create ExtentReport object. package com.code.draft; import org.openqa….

Unable to connect to Selenium Grid running on AWS EC2

I have a Selenium Grid up and running on an AWS EC2 instance. I would like to connect to this from my local machine using Java to fire off my tests via a RemoteWebDriver, however, I’m unable to …

What is the difference between getText() and getAttribute() in Selenium WebDriver?

Both are used to get the WebElement value in between tags. Is my assumption right? If wrong, please elaborate.

Selenium logging in Java – best practice? [closed]

What are the current best practices for logging selenium webdriver activity? Are there any out-of-the-box tools that hook in to native webdriver actions? I am interested in what specific tools you …

How to download XLSX file through firefox using Selenium in Java?

I am trying to download an xlsx file using the following code: FirefoxProfile profile = new FirefoxProfile(); profile.setPreference(“”, “directory where to save data”); profile….

Selecting Nth-of-type in selenium

I’m trying to use By.cssSelector to grab the nth dom element with class c3 with a structure like this:

<div class="…

How to specify order of execution of Java classes in a Selenium-Java Webdriver test project

I have to automate a test-suite for a web application which let user connect and sync with their Dropbox account. I am using Java Selenium Webdriver. Here I have created test classes like this. …

How can I use a Selenium type method?

I have a JSP page with an input text field.