check target for three times
来源:互联网 发布:spss如何进行数据分组 编辑:程序博客网 时间:2024/06/07 05:57
package com.utility;import com.Bam.SeleniumSigleInstance;import com.myexception.MyException;import com.thoughtworks.selenium.Selenium;public class CheckXpath{private static Selenium selenium;static int count = 1;public static boolean checkXpathIsValid(String xpath) throws MyException,InterruptedException{selenium = SeleniumSigleInstance.getInstance();if (!selenium.isElementPresent(xpath)){Thread.sleep(3000);System.out.println("wait for " + count * 3000+ "s for the target...");//find the targets for three times if (count == 3){throw new MyException("can not find the xpath: " + xpath);}count++;// recurrence the method checkXpathIsValid.checkXpathIsValid(xpath);}return true;}}
- check target for three times
- My Three Target Skill
- FCARM - Output Name not specified, please check 'Options for Target - Utilities'解决方法
- FCARM - Output Name not specified, please check 'Options for Target - Utilities'
- PK3Err0040: The target device is not ready for debugging. Please check your configuration bit settin
- android M Power Button three times Make Emergency Call
- has been mounted times without being checked, check forced
- Three Algorithms for Fibonacci
- cfA. Chess For Three
- 893AChess For Three
- chess for three A
- A. Chess For Three
- git use commit times for timestamps
- check identity for mssql
- check for remake jdk
- Check for Integer Overflow
- Check for Palindromes
- FCC-----------Check for Palindromes
- sizeof
- JAVA与SAP-ERP的通信策略
- Java常见异常(Runtime Exception )小结
- 简单的文件操作
- Android的接口定义语言(aidl)
- check target for three times
- 巧用“全屏”功能调整 Chrome 窗口缩略图的顺序
- AccessController.doPrivileged 小记
- SQL 查詢語法日期加減法
- LINUX0.11内核阅读笔记
- Thread Costs 线程成本
- Linux内存测量(基础篇)
- 纠结的混合声明
- Map-Reduce简介