Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pathing issues #39

Open
Grudwo opened this issue Mar 5, 2021 · 2 comments
Open

Pathing issues #39

Grudwo opened this issue Mar 5, 2021 · 2 comments

Comments

@Grudwo
Copy link

Grudwo commented Mar 5, 2021

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?

@gavinbaumanis
Copy link

Do you have a CF Mapping to the cfselenium directory where the SeleniumWebDriver.cfc lives?

@cfmitrah
Copy link
Member

@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";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants