本站资源收集于互联网,不提供软件存储服务,每天免费更新优质的软件以及学习资源!

&#使用seleniumbase

网络教程 app 1℃

&#使用seleniumbase

>我当前正在使用seleniumbase进行python中的web自动化,但是,有时我会收到“未创建的会话”错误:
>

test16.py – selenium.mon.exceptions.sessionnotcreatedexception: message: session not created: cannot connect to chrome at 12…

例如,在此代码块中:

from seleniumbase import BaseCaseBaseCase.main(__name__, __file__, "–uc")class MultipleDriversTest(BaseCase): def test_multiple_drivers(self): url1 = "invideo.io/perf/ga-ai-video-generator-web/?utm_source=google&utm_medium=cpc&utm_campaign=Top16_Search_Brand_Exact_EN&adset_name=InVideo&keyword=invideo&network=g&device=c&utm_term=invideo&utm_content=InVideo&matchtype=e&placement=g&campaign_id=18035330768&adset_id=140632017072&ad_id=616240030555&gad_source=1&gclid=Cj0KCQiAvvO7BhC-ARIsAGFyToWFf0L_8iqkB32qg9prKxVApsklZ8HA69LW2O0Z6XC1nbXXz9sCTTEaAinZEALw_wcB" driver1 = self.driver self.activate_cdp_mode(url1) url2 = "temp-mail.org/en" driver2 = self.get_new_driver(undetectable=True) # <- ERR self.activate_cdp_mode(url2) self.sleep(2) print(driver1.get_current_url()) self.sleep(2) print(driver2.get_current_url())

我在程序试图获取第二个驱动程序时会不断收到错误。>

有人知道这可能是什么原因吗?

>

以上就是&#使用seleniumbase的详细内容,更多请关注范的资源库其它相关文章!

转载请注明:范的资源库 » &#使用seleniumbase

喜欢 (0)