1.Optimization Xpath:a.In the IE it is slow to run XPath,so ‘JavaScript-XPath’ can be used to replace the default xpath library. b. When xpath is needed, as far as possible from a the id of the element, can also greatly improve the speed of execution.2.XPath extremely inefficient in IE.It is also suggest that use Dom locator and CSS locator supports IE browser where it is appropriate.a.For complex objects (not containing ID and Name of the dynamic object) Dom locator flexible than xpath locator in IE script execution efficiency and a much shorter time than when using Xpath.b.When more use of CSS page in Internet Explorer and Firefox browsers, use CSS locator instead of xpath locator.Reference material:http://blog.csdn.net/fhnp1983/article/details/6908749http://blog.csdn.net/fhnp1983/article/details/6908745http://blog.csdn.net/fhnp1983/article/details/6908741
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货