teamcfadvance / CFSelenium

A native Selenium WebDriver binding for ColdFusion
Apache License 2.0
81 stars 32 forks source link

CF8 and CF7 files updated to work with Marc's changes #6

Closed bcswartz closed 13 years ago

bcswartz commented 13 years ago

The selenium_tags.cfc was updated to match the changes made to selenium.cfc and so it will work with Marc's server.cfc file. Ended up making a version of Marc's CFSeleniumTestCase.cfc file that referenced selenium_tags.cfc instead of selenium.cfc.

Had to change server.cfc a little (the placement of some var-scoping statements) so it won't error when run in ColdFusion 8. However, while the updated ColdFusion 7 test files will run if the Selenium Server is started manually (as before), I could not get them to run when I let Marc's code do its work of starting the server (it times out trying to make the cfhttp call). So at this point CF7 users will still have to start the Selenium Server manually.

Just FYI, I could not get the testOpen() test in cf9/seleniumTest.cfc to pass on any of my computers. Oddly enough, if I took the selenium commands within the testOpen() function and put them inside the parseCSVShouldWork() function (which I ended up doing in my seleniumTest_cf8.cfc file), the commands themselves worked fine. I have no explanation for that.

bcswartz commented 13 years ago

Okay, changes made.