Open Grudwo opened 3 years ago
Do you have a CF Mapping to the cfselenium directory where the SeleniumWebDriver.cfc lives?
@Grudwo, Confirm the cfselenium
directory and SeleniumWebDriver.cfc
exist in the expected location.
If the cfselenium
package isn't in the default web root or application directory, you'll need to create a ColdFusion component mapping so that ColdFusion can locate it. You can add a mapping to the Application.cfc
to specify where to look for the cfselenium
component.
For example:
this.mappings["/cfselenium"] = "E:/ColdFusion2018/Instance/lib/CFSelenium-master/cfselenium";
I've installed the jar here: E:\ColdFusion2018\Instance\lib\CFSelenium-master\lib\selenium-server-standalone-3.4.0.jar
In my application.cfc I have this line: this.javaSettings = { loadPaths = [ 'E:/ColdFusion2018/Instance/lib/CFSelenium-master/lib/selenium-server-standalone-3.4.0.jar' ], loadColdFusionClassPath = true, reloadOnChange = true };
The application is 2 directories down from the instance root: /Util/Selenium/test.cfc
Restart server and run the code: webdriver = "E:/ColdFusion2018/Instance/lib/CFSelenium-master/webdrivers/geckodriver-v0.16.1-win64.exe"; selenium = new cfselenium.SeleniumWebDriver( driverType="firefox", webdriver=webdriver );
ColdFusion says Could not find the ColdFusion component or interface cfselenium.SeleniumWebDriver.
What am I missing?