locked
replace wait.Until(ExpectedConditions..) RRS feed

  • Question

  • Hello,

    I'm working in selenium C# and I get green line under expectedConditions that says that is obsolete and will be deprecated.

    What can I use instead?

    Thanks,

    Lea

    Sunday, October 7, 2018 12:50 PM

Answers

  • Install Nuget package DotNetSeleniumExtras.WaitHelpers and import it to your class. Then you can replace the implementation as below - 

    wait.Until(SeleniumExtras.WaitHelpers.ExpectedConditions)


    Thanks,
    Vivek Bansod
    Blog | MSDN | LinkedIn
     

    • Marked as answer by lea_y Tuesday, October 9, 2018 6:58 AM
    Tuesday, October 9, 2018 6:39 AM