Wednesday 15 July 2015

user agent - Set UserAgent when running Selenium mobile tests with SafariDriver -



user agent - Set UserAgent when running Selenium mobile tests with SafariDriver -

i want able set useragent when running selenium mobile tests on safari can't figure out how that. when run same tests on chrome can define useragent in desiredcapabilities this:

var options = { desiredcapabilities: { browsername: 'chrome', chromeoptions: { args: [ 'use-mobile-user-agent', 'user-agent=mozilla/5.0 (iphone; cpu iphone os 8_0 mac osx) ...' ] } } }

guess there must similar way when running on safari. i'm using webdriverio setup selenium project don't think should matter.

thanks.

this not supported safaridriver unfortunately. hope see in future.

selenium user-agent webdriver-io safaridriver

No comments:

Post a Comment