首页 > 解决方案 > 元素不可点击以及如何检查必填字段

问题描述

 `i have "Add Driver" feature in that so many fields are there all are 
   mandatory..if i will not enter any data into fields ,it will display 
   "field is required message",,for this how can i write selenium script`.

     WebDriverWait wait2 = new WebDriverWait(driver, 20);
     wait2.until(ExpectedConditions.elementToBeClickable(By.xpath("//a[contains(text(),'Add Driver')]"))).click();

`下图是一个例子,, ] 1

i didn't get how to write logic i m new selenium help me..

标签: selenium-webdriver

解决方案


推荐阅读