TestProject Forum

Bug with elements invisibility in OpenSDK coded tests

Hello, I’m running Ubuntu 21 and latest (3.1.0) TP agent version and I recently came across the following bug…

I recorded a test case that includes a step to check invisibility of an element, then I downloaded that test with Open SDK and opened the script in my IDE. After setting up the project (sdk, gradle java versions) when I try to execute the test fails with the following error:

So upon further inspection the failing line is this:

(new WebDriverWait(driver, 5)).until(ExpectedConditions.invisibilityOf(driver.findElement(by)));

However, that implementation has changed for some versions of Selenium ago now to be, (TestProject uses Selenium 3.141):

new WebDriverWait(driver, 5)).until(ExpectedConditions.invisibilityOfElementLocated(by));

And that compiles and execute the script locally with no issue. But when I generate the JAR and upload to the platform this same step fails with the same error I was previously getting when executing locally: