Skip to content
This repository was archived by the owner on Nov 29, 2018. It is now read-only.
This repository was archived by the owner on Nov 29, 2018. It is now read-only.

Safari browser : Selenium Webdriver exceptions #7553

Open
@lukeis

Description

@lukeis

Originally reported on Google Code with ID 7553

I'm running Selenium tests on safari 6. When use javascript executor to find viewport
height. Running the test on cnn.com

public static String scrollHeightCommand = return document.documentElement.clientHeight;
initialHeight = ((Long) (jsx.executeScript(scrollHeightCommand))) 
I'm getting this exception

org.openqa.selenium.WebDriverException: 'undefined' is not a function (evaluating 'this.each(function(value,
index) {
  results.push(iterator(value, index));
})') (WARNING: The server did not provide any stacktrace information)

But, when I run the javscript command on the console in Safari manually, it returns
the value of the viewport. Can anyone point out the issue here.

Reported by anirudht20 on 2014-07-01 12:17:28

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions