Unable to run the Test on the build machine

Asked by Mehrunisa

I have been working with sikuli 1.1.2 + Selenium standalone-3.11.0.jar to create some scripts. They seem to run perfectly fine on my local machine. But when I push the code and it runs on the build machine it gives me the following error. I wonder why is there a difference in the behaviour of the same code being run on 2 different machines.

apr 03, 2018 11:03:54 FM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`
Starting ChromeDriver 2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf) on port 14895
Only local connections are allowed.

apr 03, 2018 11:03:56 FM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS

[error] script [ Downloads ] stopped with error at line --unknown--
[error] Error caused by: Traceback (most recent call last): File "C:\Users\Sikuli\Downloads.sikuli\Downloads.py", line 29, in <module> SwitchtoParentFrame=driver.switchTo().frame(ParentFrame) (Session info: chrome=65.0.3325.181) (Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z' System info: host: 'testmachine', ip: '123.45.678.902', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_66' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.24.417431 (9aea000394714d..., userDataDir: C:\Users\Sikuli\AppData\Loc...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, takesHeapSnapshot: true, takesScreenshot: true, version: 65.0.3325.181, webStorageEnabled: true} Session ID: e8600b400ce03ba528776934496d1ba3
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.frame(RemoteWebDriver.java:891)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
org.openqa.selenium.WebDriverException: org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.181) (Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z' System info: host: 'testmachine', ip: '123.45.678.902', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_66' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.24.417431 (9aea000394714d..., userDataDir: C:\Users\Sikuli\AppData\Loc...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, takesHeapSnapshot: true, takesScreenshot: true, version: 65.0.3325.181, webStorageEnabled: true} Session ID: e8600b400ce03ba528776934496d1ba3

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mehrunisa (mehrunisa8828) said :
#1

import org.openqa.selenium.chrome.ChromeDriver as CD
import org.openqa.selenium.chrome.ChromeOptions as CO
import org.openqa.selenium.chrome.ChromeDriverService as CS
import org.openqa.selenium.remote.DesiredCapabilities as DC
import org.openqa.selenium.By as By
import org.openqa.selenium.interactions
#import org.openqa.selenium.support.ui.Select as Select
import org.openqa.selenium.support
import org.openqa.selenium.WebDriver as WD
import org.openqa.selenium.WebElement
import java.util.concurrent.TimeUnit as TimeUnit
import java.util.Arrays as Arrays
import java.lang
import java.lang.System as System

options = CO()
capability=DC.chrome()
System.setProperty('webdriver.chrome.driver', 'C:\\Sikuli\\chromedriver.exe')
capability.setCapability('chrome.switches', Arrays.asList('–disable-extensions'))
capability.setCapability('chrome.binary', 'C:/Users/user_name/AppData/Local/Google/Chrome/Application/chrome.exe')
options.addArguments('user-data-dir=C:/Users/user_name/AppData/Local/Google/Chrome/User Data/Default')
options.addArguments('--auth-server-whitelist=*wfmrc1*')
driver = CD(capability)
driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS)
driver.get("http://login:<email address hidden>/Login.aspx")
wait(60)
ParentFrame=(driver.findElement(By.ByXPath("//*[@id='ContainerControl']")))
SwitchtoParentFrame=driver.switchTo().frame(ParentFrame)

Revision history for this message
Mehrunisa (mehrunisa8828) said :
#2

It gives me the error on the line where the browser is shifting to the parent frame.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

apparently a WebDriver problem:
org.openqa.selenium.WebDriverException: org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' (Session info: chrome=65.0.3325.181) (Driver info: chromedriver=2.24.417431 (9aea000394714d2fbb20850021f6204f2256b9cf),platform=Windows NT 6.3.9600 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 0 milliseconds Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z' System info: host: 'testmachine', ip: '123.45.678.902', os.name: 'Windows 8.1', os.arch: 'x86', os.version: '6.3', java.version: '1.8.0_66' Driver info: org.openqa.selenium.chrome.ChromeDriver Capabilities {acceptSslCerts: true, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.24.417431 (9aea000394714d..., userDataDir: C:\Users\Sikuli\AppData\Loc...}, cssSelectorsEnabled: true, databaseEnabled: false, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, takesHeapSnapshot: true, takesScreenshot: true, version: 65.0.3325.181, webStorageEnabled: true} Session ID: e8600b400ce03ba528776934496d1ba3

most probably caused by setup differences.

... but as mentioned: has nothing to do with SikuliX.

Can you help with this problem?

Provide an answer of your own, or ask Mehrunisa for more information if necessary.

To post a message you must log in.