在无头模式下运行时,测试是否应该进行可见性检查?当我在普通的chrome或firefox中运行测试时,它们都通过了,但在无头模式下,我总是得到这样的错误:
test('Assert navigation from Home to page x...someSelector.visibile).ok()时,我得到这个错误
c:\Users\Administrator\Downloads\cloudbet(2).py:47:驱动程序:使用选项而不是chrome_options驱动程序= webdriver.Chrome(chrome_options=chrome_options,executable_path=r"C:\Python\Python38\Scripts\chromedriver.exe")
DevTools listening on