Selenium test - Firefox alert disappearing immediately

后端 未结 3 782
余生分开走
余生分开走 2021-01-21 05:31

I am writing a Selenium test on Firefox that deals with an alert. The alert appears for a fraction of a second when the test is run, but when done manually the alert persists. C

3条回答
  •  春和景丽
    2021-01-21 06:34

    I don't think the 'alerts.disableSlidingEffect' Firefox profile option should be causing the alert to disappear - Instead, try creating your WebDriver instance using the unexpectedalertbehaviour capability set to 'ignore'.

提交回复
热议问题