TestProject Forum
Powered by leading experts in the test automation community

Setting capabilities on drivers

How can I set capabilities on a driver before it runs? For example, I’d like to set ‘safari:useSimulator’ capability as true.

Hi Jason

You should use the following line of code in your IDE to automate website on mobile Safari (on your iOS device):

Runner runner = Runner.createIOSWeb("YOUR_DEV_TOKEN", ...

TestProject currently doesn’t allow custom capabilities to be passed.

Got it!
Somewhat related – so would it not be possible to set Chrome options on the web driver? I’d like to be able to use some of the experimental mobile emulation features: https://sites.google.com/a/chromium.org/chromedriver/mobile-emulation