I want to add user agent to the webview scripts, how to do in katalon?
i also want to add user agent
I managed to fix this issue finally. Below is how to open Chrome with user agent added:
1. Go to Project/Settings/Desired Capabilities/Custom
2. Click Add and enter a name for a browser, and click Value;
3. In the window opened, select ‘Chrome’ as driver name, and click Preference;
4. In the window opened, enter ‘args’ as name, select ‘List’ as type, and enter click ‘Value’;
5. In the window opened, enter select String as type, and enter the user agent as value.
for me its:
–user-agent=Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Mobile Safari/537.36
6. To run it, select the new browser created through Custom Capabilities -> new browser