1.小数点处理 public class Test { public static void main(String[] args) { double i = 3.856; // 舍掉小数取整 System.out.println("舍掉小数取整:Math.floor(3.856)=" + (int) Math.floor(i)); // 四舍五入取整 System.out.println("四舍五入取整:(3.856)=" + new BigDecimal(i).
这是2019年的第一篇文章,因公司事情较多,导致更新缓慢.这次主要推荐一些可能在使用rf工具的时候需要掌握的关键字. 1. @{cloose_ele} get webelements xpath=//input[contains(@placeholder,'请选择')] 例如当你发现一个页面有多个请选择的时候,可能可以定位的元素就只有text,或者其他定位太复杂,不想定位的时候.推荐使用 get webelements 来把所有相似的元素全部捕获在一个数组里面,然后通过下标选择你所需要的第
摸索测试,不管是安装.调测第一个用例都会遇到各种各样的问题,或是自己的问题或是程序本身设置问题 只有把所有问题记录下来,才对得起自己的经历 1.设置firefox的执行文件错误 Exception in thread "main" org.openqa.selenium.WebDriverException: Cannot find firefox binary in PATH. Make sure firefox is installed. OS appears to be: VIS