Skip to content

2. Browser engines and user_agents

Zurdi edited this page Aug 28, 2019 · 3 revisions

Browser engines

  • Chrome

browser('chrome', [user_agent], [headless]);
  • Firefox

browser('firefox', [user_agent], [headless]);

User-agents

User-agent can be defined directly in the browser() call, or use one of the following pre-configured user-agents. To use the browser with default user agent, use 'default'.

browser('chrome', 'default', False);
browser('chrome', 'Chrome on Android Tablet', False);
browser('chrome', 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36', False);

  • Chrome

'Chrome on Android Mobile' 

'Chrome on Android Tablet' 

'Chrome on Mac' 

'Chrome on Ubuntu'

'Chrome on Windows' 

'Chrome on iPhone'

'Chrome on iPad' 


  • Firefox

'Firefox on Android Mobile' 

'Firefox on Android Tablet'   

'Firefox on Mac'                   

'Firefox on Ubuntu'             

'Firefox on Windows'             

'Firefox on iPhone'               

'Firefox on iPad'               


  • Internet Explorer

'Internet Explorer 11'   

'Internet Explorer 10'   

'Internet Explorer 9'   

'Internet Explorer 8'     

'Internet Explorer 7'         

'Internet Explorer 6' 


  • Edge

'Edge 12'       

'Edge 13'       

'Edge - Windows'           

'Edge - Mobile'         

'Edge - XBox'     


  • Opera

'Opera on Mac'       

'Opera on Windows'     


  • Safari

'Safari on Mac'           

'Safari on Windows'       

'Safari on iPad'             

'Safari on iPhone'


  • Spiders/Bots

'BingBot (Bing spider)'     

'Googlebot (Google spider)'     

'Googlebot'           

'Googlebot Smartphone' 

'Slurp! (Yahoo spider)'   


  • Android

'Nexus 7 (Tablet)'         

'Samsung Galaxy Tab (Tablet)'     

'Samsung Galaxy S3 (Handset)'   

'Android (4.0.2) Galaxy Nexus'     

'Android (2.3)' 


  • iOS

'iPad'         

'iPhone'           

'iPod'             


  • Windows phone

'Windows Phone 7'   

'Windows Phone 7.5'   

'Windows Phone 8'   


  • Blackberry

'BlackBerry - BB10'       

'BlackBerry - Playbook 2.1'       

'BlackBerry - 9900'   


  • Others

'MeeGo - Nokia N9'