我实际上需要在扩展区报告中打印这些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']