Error “Multiple markers at this line - Syntax error on token ” returned when using selenium.setSpeed()

后端 未结 1 563
盖世英雄少女心
盖世英雄少女心 2021-01-24 15:32

When I included selenium.setSpeed(\"2000\"); inside my void main i got the syntax error \"selenium cannot be resolved\"

When I placed it outside my void mai

相关标签:
1条回答
  • 2021-01-24 16:31

    The ancient versions of Selenium of-coarse had a method as setSpeed() but this method had been deprecated long back. setSpeed() was used to control the speed of each step of your Automation Script. As the purpose of Automated Testing is to reduce the Validation Time so setting the speed of each line of your script execution through setSpeed() was contradictory. Hence setSpeed() was deprecated.

    Incase you want to wait for a certain condition you can use either Implicit Wait or Explicit Wait i.e. WebDriverWait Class in-conjunction with ExpectedConditions.

    0 讨论(0)
提交回复
热议问题