MAC使用Safari浏览器仿真IE

前言

实际测试工做中,不少web网页须要进行浏览器兼容性测试。若是你用的是mac本,就可能没法正常使用IE浏览器。这里比较取巧的一个方法就是使用Safari浏览器的用户代理功能(UA)。html

步骤

1. 打开safari浏览器,选择偏好->高级,勾选在菜单栏中显示“开发”菜单web

2.在顶部菜单栏选择开发->用户代理浏览器

列表上默认了一些浏览器用户代理,若是没有想要的,能够选择其余,输入用户代理字符串。运维

3. 选择其余的用户代理(如IE8)ide

以下是常见的IE浏览器用户代理:测试

Internet Explorer 8, Windows XP, Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)url

Internet Explorer 8, Windows Vista, Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; WOW64; Trident/4.0;)spa

Internet Explorer 8, Windows 7, Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0).net

Internet Explorer 9, Windows Vista, Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 6.0)3d

Windows IE 9 Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

Windows IE 10 Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)

Windows IE 11 Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko

Windows Phone IE 10 Mozilla/5.0 (compatible; MSIE 10.0; Windows Phone 8.0; Trident/6.0; IEMobile/10.0; ARM; Touch; NOKIA; Lumia 920)

这种方法比较简单粗暴,可是对于ie8如下的就不适用了。


博主:测试生财(一个不为996而996的测开码农)

座右铭:专一测试开发与自动化运维,努力读书思考写做,为内卷的人生奠基财务自由。

内容范畴:技术提高,职场杂谈,事业发展,阅读写做,投资理财,健康人生。

csdn:https://blog.csdn.net/ccgshigao

博客园:https://www.cnblogs.com/qa-freeroad/

51cto:https://blog.51cto.com/14900374

在码农的苦闷岁月里,期待咱们一块儿成长,欢迎关注,感谢拍砖!

相关文章
相关标签/搜索