TestProject Forum
Powered by leading experts in the test automation community

WaitForElementToBeVisible not found on generated code in C#

I just started using TestProject and tried to export the example test project to C# but it fails compile.

‘WebActions’ does not contain a definition for ‘WaitForElementToBeVisible’ and no accessible extension method ‘WaitForElementToBeVisible’ accepting a first argument of type ‘WebActions’ could be found (are you missing a using directive or an assembly reference?)

All the other methods seem to be there though and I am on version 0.65 of the SDK.

Hey @seb,

Thanks for letting us know, we will handle the issue.

Meanwhile, you can replace that method with a simple visibility check:

boolResult = driver.FindElement(by).Displayed;