本帖最后由 jackywangdj 于 2012-10-22 22:19:01 编辑

解决方案 »

  1.   

    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
      

  2.   

    浏览器的性能不一样,这就是为什么经常有评测Chrome,Firefox,Safari完虐IE。