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

Cannot read property 'run' of undefined #10

Closed
Abhinav897 opened this issue Aug 17, 2020 · 4 comments
Closed

Cannot read property 'run' of undefined #10

Abhinav897 opened this issue Aug 17, 2020 · 4 comments

Comments

@Abhinav897
Copy link

Abhinav897 commented Aug 17, 2020

Hi,

While executing the code I'm getting the below error on the execute method can you please help me out with this,
Exception in thread "main" org.openqa.selenium.JavascriptException: javascript error: Cannot read property 'run' of undefined
(Session info: chrome=84.0.4147.125)

@sridharbandi
Copy link
Owner

@Abhinav897 I have fixed this issue and released the version 2.1.4. Check it out. Thank you 😊.

@anukodali83
Copy link

Hi Sridhar, i tried by downloading the 2.1.4 jar and keeping it in class path , i am still getting below error, please need you help

public static String RUNNER = "window.HTMLCS_RUNNER.run('%s');";

org.openqa.selenium.WebDriverException: unknown error: Cannot read property 'run' of undefined
(Session info: chrome=87.0.4280.66)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:671)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
at com.accessbility.driver.DriverContext.executeScript(DriverContext.java:68)
at com.accessbility.AccessibilityRunner.execute(AccessibilityRunner.java:63)

@sridharbandi
Copy link
Owner

__

Hi Sridhar, i tried by downloading the 2.1.4 jar and keeping it in class path , i am still getting below error, please need you help

public static String RUNNER = "window.HTMLCS_RUNNER.run('%s');";

org.openqa.selenium.WebDriverException: unknown error: Cannot read property 'run' of undefined
(Session info: chrome=87.0.4280.66)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:215)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:167)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:671)
at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:573)
at com.accessbility.driver.DriverContext.executeScript(DriverContext.java:68)
at com.accessbility.AccessibilityRunner.execute(AccessibilityRunner.java:63)

Hi @anukodali83, post the snippet you are using and the application URL as well.

Repository owner deleted a comment from anukodali83 Dec 3, 2020
@anukodali83
Copy link

Hi Sridhar, the issue is resolved with your help
Thanks for your quick response and help

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