• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






cloud_test

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

随笔分类 -  Seleium by C#

上一页 1 2

Selenium自动化测试
 
Selenium稳定性 Test
摘要:[Test] public void DriverExtension_Wait() { var driver = new FirefoxDriver(); driver.Navigate().GoToUrl("http://www.baidu.com"); driver.FindElement(By.Id("kw")).SendKeys("selenium"); driver.FindElement(By.Id("su")).Submit(); drive... 阅读全文
posted @ 2013-11-29 17:33 cloud_test 阅读(740) 评论(0) 推荐(0)
Selenium 脚本稳定性问题
摘要:运行一个星期前升至更久前的脚本,,,出现如下错误提示elementNotVisibleException was unhandled by user code。经过询问大侠,说我的脚本不够健全,也就是稳定性的问题,需要增加一些判断等待,那需要封装一些等待方法 public static void WaitUnit(this IWebDriver webDriver, Func func, int seconds = 20) { var wait = new WebDriverWait(webDriver, TimeSpan.FromSeconds(seco... 阅读全文
posted @ 2013-11-29 15:52 cloud_test 阅读(984) 评论(0) 推荐(0)
selenium资料
摘要:来源http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/dotnet/Selenium.ISelenium.MouseMoveAt.html#locatorsElement LocatorsElement Locators tell Selenium which HTML element a command refers to. The format of a locator is:locatorType=argumentWe support the following strategies for locating 阅读全文
posted @ 2013-11-24 15:08 cloud_test 阅读(238) 评论(0) 推荐(0)
Selenium API(C#)
摘要:1 Fetching a Pagedriver.Url="http://www.google.com";2 Locating UI Elements (WebElements)By IDThis is the most efficient and preferred way to locate an element. Common pitfalls that UI developers make is having non-unique id’s on a page or auto-generating the id, both should be avoided. A c 阅读全文
posted @ 2013-11-23 12:20 cloud_test 阅读(357) 评论(0) 推荐(0)
 

上一页 1 2