Help from PHANTOMJS windows local screenshots and transparently put screenshots in linux test environment

this is a local screenshot of a web page with information

dcap = dict(DesiredCapabilities.PHANTOMJS)
dcap["phantomjs.page.settings.userAgent"] = (
    "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6"
)
driver = webdriver.PhantomJS(desired_capabilities=dcap)
driver.get("https://www.cn.kayak.com/flights/BJS-BKK/2018-08-01/2018-08-15?sort=price_a")

this is a screenshot of the test and it is blank

dcap = dict(DesiredCapabilities.PHANTOMJS)
dcap["phantomjs.page.settings.userAgent"] = (
        "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.8) Gecko Fedora/1.9.0.8-1.fc10 Kazehakase/0.5.6"
)

driver=webdriver.PhantomJS(executable_path=r"/usr/local/src/phantomjs/bin/phantomjs",desired_capabilities=dcap)
driver.get("https://www.cn.kayak.com/flights/BJS-BKK/2018-08-01/2018-08-15?sort=price_a")

the picture is as follows

the key point is that I replace the request address with "https://www.baidu.com/" local and test screenshots are normal
I would like to ask if this kind of website has taken special precautions, is there a solution

?
Apr.02,2021

the answer is here answer

Menu