0

I have

profile = webdriver.ChromeOptions()

I want to create copies of it and modify them differently to obtain a set of different profiles. However, when I do

profile1 = profile
profile1.add_argument(different argument)

the new arguments seem to be added to the original options and I end up with only 1 set of options. How can I copy the options properly?

weasel
  • 534
  • 1
  • 5
  • 18

1 Answers1

0

import copy then use copy.deepcopy()

weasel
  • 534
  • 1
  • 5
  • 18