I have handled alert in selenium java it is working fine . When i run local but while azure pipeline execution this alert is not handled shows error ...

TimeoutException:Expected condition is failed : waiting for alert to be present tried for 20seconds with 500 ms intervals.

Not sure why i am getting this. Can anyone help?

  • did you ran the tests directly on the agent and saw whether the alert is thrown?
    – PDHide
    May 16 '20 at 6:15
  • Did you try with headless mode in local? getting same error? or pass?
    – Sachintha
    May 18 '20 at 10:07
  • When i open rdp in machine it works in pipeline
    – user45038
    May 18 '20 at 14:00
  • but if i run alone pipeline i am not able to
    – user45038
    May 18 '20 at 14:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.