scala - Why selenium "wait" is not consistent? -
i have webelement (text field) i'm watching wait
, because want send keys it.
tt looks this:
val wait: webdriverwait = new webdriverwait(driver, 120) wait.until(expectedconditions.elementtobeclickable(by.id("invoice_supplier_name"))) val suppliertextfield: webelement = driver.findelement(by.id("invoice_supplier_name")) suppliertextfield.clear() suppliertextfield.sendkeys(invoice.suppliername)
but it's ok , error "element not visible"
does know why be?
thanks
Comments
Post a Comment