随笔分类 -  Selenium

【转】Selenium关于富文本框的处理思路
摘要:原文:http://qa.corp.anjuke.com/?p=427 最近在使用IATA执行CASE的时候发现在chrome浏览器下处理一些类似所见即所得的富文本框,页面元素在switchintoframe后无法正常切换回来,针对这个问题给出一个解决方案供大家交流。具体如下如图所示,这是一个比较常见的富文本编辑框,在chrome下使用默认的处理方式即switch 进FRAME然后编辑完内容可能会发生无法切换回当前操作的window的问题,原因是chromedriver中switch操作元素的函数对富文本框的支持不是很好。下面给出一种可行的思路大家交流一下,首先我们看一下这个页面的源码,找到这 阅读全文

posted @ 2013-04-26 17:08 ibelieve 阅读(678) 评论(0) 推荐(0)

Selenium Tips - CSS定位元素
摘要:Selenium Tips - CSS定位元素原文:http://sauceio.com/index.php/2010/01/selenium-totw-css-selectors-in-selenium-demystified/ Following my previous TOTW about improving your locators, this blog post will show you some advanced CSS rules and pseudo-classes that will help you move your XPATH locators to CSS, a 阅读全文

posted @ 2013-04-26 16:47 ibelieve 阅读(344) 评论(0) 推荐(0)

Selenium Tips - 从XPATH到CSS
摘要:原文:http://sauceio.com/index.php/2009/10/selenium-tip-of-the-week-start-improving-your-locators/ Almost everyone in the Selenium world knows of the power of XPATH as a locating strategy, at the same way, most of them also know of its slowness on IE.Now, if your tests have relatively simple XPATHlocat 阅读全文

posted @ 2013-04-26 16:28 ibelieve 阅读(322) 评论(0) 推荐(0)

导航