This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
WebDriver
Shaihuludus edited this page Aug 31, 2017
·
3 revisions
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;
Project generated using Bobcat's archetype comes with webdriver.properties file. It's responsible for storing WebDriver properties.
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 |
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
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
- Configuring Bobcat
- Selenium enhancements
- Cucumber enhancements
- Traffic analyzer
- Email support
- Reporting
- Cloud integration
- Mobile integration
- Executing tests on different environments
- Working with multiple threads
- Tips and tricks
- Authoring tutorial - Classic
- AEM Classic Authoring Advanced usage
- Siteadmin
- Sidekick
- Aem Component
- Working with author pages
- Working with Publish pages
- Advanced component interactions
- Working with Context Menu
- Using Aem Content Tree
- Aem Content Finder
- Storing component configurations
- Working with packages
- Jcr Support
- Authoring tutorial - Touch UI
- Adding and editing a component
- Sites management tutorial