How to open a Chrome Profile through Python

前端 未结 2 639
隐瞒了意图╮
隐瞒了意图╮ 2020-11-22 03:01

My script I have been writing has been working great. I just added the option so it would open a profile on chrome using this code.

options = webdriver.Chrom         


        
2条回答
  •  失恋的感觉
    2020-11-22 03:21

    You can use options = Options() or options = webdriver.ChromeOptions() at place of options = webdriver.ChromeOptions

    Otherwise you are pointing at an object (namely webdriver.ChromeOptions), and not making an instance of that object by including the needed parenthesis

提交回复
热议问题