-
Notifications
You must be signed in to change notification settings - Fork 1
2. Browser engines and user_agents
- Chrome
browser('chrome', [user_agent], [headless]);
- Firefox
browser('firefox', [user_agent], [headless]);
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 on Android Mobile'
'Chrome on Android Tablet'
'Chrome on Mac'
'Chrome on Ubuntu'
'Chrome on Windows'
'Chrome on iPhone'
'Chrome on iPad'
'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 11'
'Internet Explorer 10'
'Internet Explorer 9'
'Internet Explorer 8'
'Internet Explorer 7'
'Internet Explorer 6'
'Edge 12'
'Edge 13'
'Edge - Windows'
'Edge - Mobile'
'Edge - XBox'
'Opera on Mac'
'Opera on Windows'
'Safari on Mac'
'Safari on Windows'
'Safari on iPad'
'Safari on iPhone'
'BingBot (Bing spider)'
'Googlebot (Google spider)'
'Googlebot'
'Googlebot Smartphone'
'Slurp! (Yahoo spider)'
'Nexus 7 (Tablet)'
'Samsung Galaxy Tab (Tablet)'
'Samsung Galaxy S3 (Handset)'
'Android (4.0.2) Galaxy Nexus'
'Android (2.3)'
'iPad'
'iPhone'
'iPod'
'Windows Phone 7'
'Windows Phone 7.5'
'Windows Phone 8'
'BlackBerry - BB10'
'BlackBerry - Playbook 2.1'
'BlackBerry - 9900'
'MeeGo - Nokia N9'
Feel free to improve or suggest anything about this software.
Coding guideline
-
Languaje Features
-
Expression operators
-
Built-in functions
-
Sniffering functions
-
Advanced functions