Remote Execution for Web picking tablet view while execution in headless mode.
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Remote Execution for Web picking tablet view while execution in headless mode.
Remote Execution for Web picking tablet view while execution in headless mode.as a result scripts are getting failed.
We have removed all the defined virtual browsers from current project settings and default project settings and set chrome with resol
Following are the parameters which we are using in our script -
capabilities =
"platform" = "Windows 10",
"browserName" = "chrome",
"screenResolution" = "1920x1080"
Browsers.RemoteItem["localhost", capabilities].Run(baseurl)
Solved! Go to Solution.
- Labels:
-
Web Testing
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does test fail under local browser execution?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Test is not exactly failing due to Browsers.RemoteItem, but it is picking the tablet view which hides our UI control and that's the reason, our execution is failing
We tried with both, but didn't work -
Browsers.RemoteItem["localhost", capabilities].Run(baseurl)
Browsers.RemoteItem["http://hub.crossbrowsertesting.com:80/wd/hub", capabilities].Run(baseurl)
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the solution by adding few parameters in the arguments i.e.
args :
[--headless
--window-size=1920*1080]
