停止在控制台

时间:2018-02-05 09:42:39

标签: google-chrome-devtools console.log

有没有办法可以阻止控制台列出特定错误?

我问,因为自Chrome 63以来,它在控制台中多次显示错误“发现2个具有非唯一ID的元素”,并且可能使查找我正在调试的任何其他问题的任何错误变得更加困难。< / p>

由于 詹姆斯

1 个答案:

答案 0 :(得分:0)

您可以在过滤器文本框中输入from lxml import etree from urllib.request import urlopen root = etree.parse(urlopen(url)).getroot() ns = { 'd': 'http://datex2.eu/schema/2/2_0' } parking_area = root.xpath('//d:parkingAreaStatus', namespaces=ns) parking_facility = root.xpath('//d:parkingFacilityStatus', namespaces=ns) for pa in parking_area: area_ref = pa.find('d:parkingAreaReference', ns) ParkingspaceList.append(str((area_ref.get('id')))) for pf in parking_facility: facility_ref = pf.find('d:parkingFacilityReference', ns) ParkingspaceList.append(str((facility_ref.get('id')))) ,以过滤掉包含-<text>的邮件。

在下面的屏幕截图中,隐藏了<text>退出到控制台的消息,因为过滤器文本框设置为two

negative filter

相关问题