I have written Selenium script & it sucessfully executed on FF, chrome & IE. But when I tried it on Safari it gives error while clicking on button. I used Selenium-java-2.52 version jars & Safari version-5.1.7. Is there any solution to overcome with this?
It gives this type of error:
org.openqa.selenium.WebDriverException: 'undefined' is not a function (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 16 milliseconds
Build info: version: '2.49.0', revision: '365eeb44deba2067b1761c8862ef21d55250e063', time: '2016-01-13 11:57:39'
System info: host: 'comp-2', ip: '192.168.101.16', os.name: 'Windows 7', os.arch: 'x86', os.version: '6.1', java.version: '1.8.0_66'
Driver info: org.openqa.selenium.safari.SafariDriver
Capabilities [{browserName=safari, takesScreenshot=true, javascriptEnabled=true, version=5.1.7, cssSelectorsEnabled=true, platform=WINDOWS, secureSsl=true}]
Session ID: null
Is Windows- Safari always supports Selenium to run script?