Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

WebDriver

Shaihuludus edited this page Aug 31, 2017 · 3 revisions

WebDriver

How to access WebDriver

Selenium reference: http://www.seleniumhq.org/docs/03_webdriver.jsp#introducing-webdriver

There is no need for manual WebDriver creation. In order to user WebDriver instance just inject it into the class.

@Inject
private WebDriver webdDiver;

WebDriver configuration

Project generated using Bobcat's archetype comes with webdriver.properties file. It's responsible for storing WebDriver properties.

Browser selection

webdriver.type=firefox

Possible values:

value comment
firefox additional property: webdriver.firefox.bin - for custom firefox installation
chrome additional property: webdriver.chrome.driver - for chromedriver.exe location
ie additional property webdriver.ie.driver - for IEDriverServer.ece location
html for HTML unit driver
remote for cloud e.g. SouceLabs
xvfb for Firefox in XVFB mode

WebDriver Implicit timeouts

Selenium reference: http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp#implicit-waits

There is no need for manual implicit wait setting. Just change value of following property:

webdriver.defaultTimeout=10

WebDriver Capabilities

Selenium reference: https://github.com/SeleniumHQ/selenium/wiki/DesiredCapabilities

In order to set desired capabilities just add following property (e.g. javascriptEnabled) in the properties file:

webdriver.cap.javascriptEnabled=false

Getting started with Bobcat

  1. Getting started

AEM Related Features

  1. Authoring tutorial - Classic
  1. AEM Classic Authoring Advanced usage
  1. Authoring tutorial - Touch UI
Clone this wiki locally