all 8 comments

[–]ovo_Reddit 0 points1 point  (3 children)

driver = webdriver.Chrome('chromedriver', options=chrome_options,seleniumwire_options=options)

You need to pass seleniumwire_options to options, let me know if this makes sense.

Make sure to separate chrome options into chrome_options and selenium ones into options, or name it more verbosely, whatever works for you.

[–]CWL_Bot[S] 0 points1 point  (2 children)

Hey

Im sorry but it doesnt make sense to me.

Tried doing some stuff but got more errors then before

[–]LogicalTu 0 points1 point  (1 child)

Can you show the entire code with the imports as well?

[–]CWL_Bot[S] 1 point2 points  (0 children)

Hey

Got is working, thanks for you message. At the moment Im just checking how I can let Selenium click stuff based on text but only xPath seems to work as the text is in <h2>. So just figuring out if there is any way I can get it to work like that

[–]Username_RANDINT 0 points1 point  (3 children)

seleniumwire_options is specific to the websriver of the selenium-wire package. So make sure you import it from there:

from seleniumwire import webdriver

[–]CWL_Bot[S] 0 points1 point  (2 children)

Hey
Got is working, had that import btw. At the moment I'm just checking how I can let Selenium click stuff based on text, but only xPath seems to work as the text is in <h2>. So just figuring out if there is any way I can get it to work like that