How to obtain native logger in Selenium WebDriver

后端 未结 4 1573
悲&欢浪女
悲&欢浪女 2020-12-02 15:49

Is it possible to obtain the logger somehow that Selenium WebDriver uses? I want to capture a transcript of all the commands that were issued (eg: open, wait, click, etc). I

4条回答
  •  难免孤独
    2020-12-02 16:25

    Try

    driver.manage().logs()
    

    You will get Logs interface that has methods to get logs and log types. See Logs interface docs

提交回复
热议问题