All Projects → teamcfadvance → Cfselenium

teamcfadvance / Cfselenium

Licence: apache-2.0
A native Selenium WebDriver binding for ColdFusion

Projects that are alternatives of or similar to Cfselenium

Node Chromedriver
An installer and wrapper for Chromedriver.
Stars: ✭ 378 (+390.91%)
Mutual labels:  selenium, selenium-webdriver
Cabbie
WebDriver for the masses
Stars: ✭ 70 (-9.09%)
Mutual labels:  selenium, selenium-webdriver
Selenium Maven Template
A maven template for Selenium that will let you check out and go.
Stars: ✭ 403 (+423.38%)
Mutual labels:  selenium, selenium-webdriver
Wdio Video Reporter
Reporter for WebdriverIO v6 that makes videos of failed tests and has optional allure integration
Stars: ✭ 53 (-31.17%)
Mutual labels:  selenium, selenium-webdriver
Java.appium
Mobile test automation using Appium in Java
Stars: ✭ 59 (-23.38%)
Mutual labels:  selenium, selenium-webdriver
Htmlelements
Html Elements is a Java framework providing easy-to-use way of interaction with web-page elements in web-page tests.
Stars: ✭ 258 (+235.06%)
Mutual labels:  selenium, selenium-webdriver
Php Webdriver
PHP client for Selenium/WebDriver protocol. Previously facebook/php-webdriver
Stars: ✭ 4,477 (+5714.29%)
Mutual labels:  selenium, selenium-webdriver
page-modeller
⚙️ Browser DevTools extension for modelling web pages for automation.
Stars: ✭ 66 (-14.29%)
Mutual labels:  selenium, selenium-webdriver
Pyleniumio
Bring the best of Selenium and Cypress into a single Python package
Stars: ✭ 61 (-20.78%)
Mutual labels:  selenium, selenium-webdriver
E2e Experiment
A demo project with Spring Boot / Angular application and e2e tests
Stars: ✭ 9 (-88.31%)
Mutual labels:  selenium, selenium-webdriver
webdrivermanager-examples
JUnit tests with Selenium WebDriver and WebDriverManager
Stars: ✭ 94 (+22.08%)
Mutual labels:  selenium, selenium-webdriver
Javaee7 Petclinic
Java EE 7 Petclinic
Stars: ✭ 31 (-59.74%)
Mutual labels:  selenium, selenium-webdriver
ZZULI-healthreport
郑州轻工业大学疫情打卡
Stars: ✭ 95 (+23.38%)
Mutual labels:  selenium, selenium-webdriver
Atata
C#/.NET test automation framework for web
Stars: ✭ 362 (+370.13%)
Mutual labels:  selenium, selenium-webdriver
atata-kendoui
A set of Atata components for Kendo UI
Stars: ✭ 17 (-77.92%)
Mutual labels:  selenium, selenium-webdriver
Golem
A complete test automation tool
Stars: ✭ 441 (+472.73%)
Mutual labels:  selenium, selenium-webdriver
headless-chrome
Implementation of the new headless chrome with chromedriver and selenium.
Stars: ✭ 34 (-55.84%)
Mutual labels:  selenium, selenium-webdriver
PWAF
Python Webdriver Automation Framework
Stars: ✭ 37 (-51.95%)
Mutual labels:  selenium, selenium-webdriver
Instagramfirstcommenter
This bot will post a predefined comment as fast as possible to a new post on the target profile. I used this to successfully win tickets for a big music festival.
Stars: ✭ 26 (-66.23%)
Mutual labels:  selenium, selenium-webdriver
Marionette client
Mozilla's Gecko Marionette client in golang
Stars: ✭ 21 (-72.73%)
Mutual labels:  selenium, selenium-webdriver

Build Status

CFSelenium - A Native CFML (ColdFusion) Client Library for the Selenium WebDriver

What is CFSelenium?

CFSelenium is a ColdFusion Component (CFC) which provides a native client library for the Selenium WebDriver. This allows you to write tests, using CFML, which will drive a browser and verify results.

This version has dropped support for Selenium-RC and Selenium-IDE. Also the tests have been rewritten for TestBox by Ortus Solutions.

Requirements

  1. Lucee 4.5+ or Adobe ColdFusion 11+
  2. TestBox if you want to run the test suite

Implementation

Ensure that the standalone Selenium Server jar file is in your Java load path. You can add this to your Application.cfc to ensure the file is loaded.

this.javaSettings = { loadPaths = [ '/path/to/cfselenium/lib/selenium-server-standalone-3.4.0.jar' ] };

To create an instance of Selenium WebDriver:

selenium = new cfselenium.SeleniumWebDriver( driverType="firefox" );

Currently the Firefox WebDrivers for both Macintosh and Windows are provided. Other browsers and operating systems will be added as test coverage increases.

Using WebDriver

Example: Get a page title.

selenium = new cfselenium.SeleniumWebDriver( driverType="firefox" );
driver = selenium.getDriver();
driver.get( "https://www.google.com" );
writedump( var="#driver.getTitle()#" ); // evaluates to "Google"
driver.quit();

Testing

Running the Tests

cd /path/to/my/webroot/ # or wherever you want to put stuff
git clone https://github.com/teamcfadvance/CFSelenium.git cfselenium
cd cfselenium
git checkout master
git clone https://github.com/Ortus-Solutions/TestBox.git testbox
cd testbox
git checkout master
Multi-CFML-Engine Testing using CommandBox

One super-easy way to do tests in different CFML engines is this is to install CommandBox by Ortus Solutions , run the executable, then, within CommandBox:

cd /path/to/my/webroot/ # or wherever you'd put it
# testing in Lucee 4.5, for instance
server start [email protected] # when done testing, run `stop`
# testing in ACF 11, for instance
server start [email protected] # when done testing, run `stop`

That will open a browser window with a random port (e.g., 62261), after which, browse to the following to run the tests and see the results:

Support

Please use the main repo's issue tracker to report bugs and request enhancements.

Credits

The script-based version of CFSelenium was created by Bob Silverberg and the tag-based version was created by by Brian Swartzfager. Marc Esher provided the logic which starts and stops the Selenium-RC server automatically. @Lampei and Jamie Jackson added WebDriver support.

Richard Herbert refactored the WebDriver approach and removed support for Selenium-RC and Selenium-IDE. The tests were rewritten using TestBox/CommandBox and MXUnit has been removed.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].