Using ColdFusion within Selenium

ColdFusion Selenium

Selenium only cares the output is in its simple table structure. Please refer to Sebastien Lachance's post about Structure of an html test and James Netherton's post about Selenium suites . I use the Firefox IDE to initially create scripts and save as a cfm file. Then add the ColdFusion sweetness. Here is a simple use of ColdFusion within a Selenium test script to create a random email address. This would be useful when needing unique email addresses for testing a create new user process.
_

type emailAddress #email# _ Generating dynamic test scripts are easy. Here is an example of looping through all the options of a select statement with a query and verifying after submitting. _ select select\_id, selectName from selectTable _ _ _ _ select Select\_ID value=#selectOptions.select\_ID# _ _ clickAndWait button _ _ verifyValue select\_ID #selectOptions.select\_ID# _ __ __
Mike Henke

Written by Mike Henke

Mike Henke (pronounced "hang-kee") is a full-stack developer with 25+ years of experience, evolving from ColdFusion to modern frontend frameworks, AI, and cloud technologies. Based in Omaha, he enjoys time with his wife and three children when not coding.