0

我实际上需要在范围报告中打印这些 webdriver 日志,这些日志正在控制台中打印,但我也需要在我的范围报告中。

我不想在我的测试用例一个问题中写“test.log(Status.info,”导航到“)”,我们可以用webdriver监听器实现范围报告吗

这些日志正在我的控制台中打印。我在范围报告中需要这些日志

         Trying to find Element By : By.xpath: //a[@class='account_icon']
Found Element By : By.xpath: //a[@class='account_icon']
Trying to click on: [[ChromeDriver: chrome on XP (75240300120748eac34cac341b58ae6b)] -> xpath: //a[@class='account_icon']]
Clicked on: [[ChromeDriver: chrome on XP (75240300120748eac34cac341b58ae6b)] -> xpath: //a[@class='account_icon']]
Trying to find Element By : By.xpath: .//*[@id='log']
Found Element By : By.xpath: .//*[@id='log']
Trying to find Element By : By.id: pwd
Found Element By : By.id: pwd
Property file loaded
Trying to find Element By : By.xpath: //img[@alt='home']
Found Element By : By.xpath: //img[@alt='home']
4

0 回答 0