Landscape view in ipad display in sauce labs

17 views
Skip to first unread message

udhaya kumar

unread,
Dec 4, 2014, 11:35:11 PM12/4/14
to seleniu...@googlegroups.com

'device-orientation': 'landscape',

Using this device orientation change the view to landscape on that initially only one time it works, and the web page is displayed landscape view in  ipad browser in sauce labs but it happen ONCE ONLY, after that it shows some error like this.

Error: [element.sendKeys("http://demoqa.ovcdemo.com:8080/POSMClient/web/p...;)] Error response status: 17, JavaScriptError - An error occurred while executing user supplied JavaScript. Selenium error: An error occurred while executing user supplied JavaScript.

When i am investigate the issue in selenium log some point is there on that this is the SUCESSFUL selenium log

info: [INST] 2014-11-22 05:05:17 +0000 Debug: target.frontMostApp().keyboard().typeString("http://demoqa.ovcdemo.com:8080/POSMClient/web/p...;)
147
148info: [INST] 2014-11-22 05:05:38 +0000 Default: Command executed without response
149
150info: [INST] 2014-11-22 05:05:38 +0000 Default: Result is not protocol compliant, wrapping
151
152info: [INST] 2014-11-22 05:05:38 +0000 Default: Running command #6: /usr/local/Cellar/node/0.10.22/bin/node ./node_modules/.bin/instruments-client.js -s /tmp/instruments_sock -r {"status":0,"value":""

after that am run the SAME CODE the web page doesn't pass.
FAILED selenium log is belowed.

info: [INST] 2014-11-24 04:15:40 +0000 Default: Got new command 5 from instruments: au.getElement('0').setValueByType('http:\/\/demoqa.ovcdemo.com:8080\/POSMClient\/web\/posmclient\/index.html')
142
143info: [INST] 2014-11-24 04:15:40 +0000 Debug: target.frontMostApp().elements()[0].elements()[0].tap()
144
145info: [INST] 2014-11-24 04:15:42 +0000 Debug: target.frontMostApp().keyboard().typeString("http://demoqa.ovcdemo.com:8080/POSMClient/web/p...;)
146
147info: [INST] 2014-11-24 04:15:53 +0000 Debug: target.frontMostApp().keyboard() FAILED TO TAP 'S'
148
149info: [INST STDERR] 2014-11-23 20:15:53.177 ScriptAgent[609:3007] Log written to /Users/chef/Library/Application Support/iPhone Simulator/7.1-64/Library/Logs/CrashReporter/UIALogs/ScriptError-2014-11-23-201553.plist
150
151info: [INST] 2014-11-24 04:15:53 +0000 Default: Running command #6: /usr/local/Cellar/node/0.10.22/bin/node ./node_modules/.bin/instruments-client.js -s /tmp/instruments_sock -r {"status":17,"value":"target.frontMostApp().keyboard() failed to tap 'S'

The URL contain's "POSMClient" on that 'S' character passed to failed so that it shows failed to tap 'S'.
This is the url
http://demoqa.ovcdemo.com:8080/POSMClient/web/posmclient/index.html



If any one know pls post how fix this issue.


Reply all
Reply to author
Forward
0 new messages