Skip to content

Weird error: AttributeError: 'NoneType' object has no attribute 'find_element' when using seleniumbase CDP mode. #3445

Answered by mdmintz
ZcodeZ777 asked this question in Q&A
Discussion options

You must be logged in to vote

You spun up a new driver using sb.get_new_driver(), which changed the default driver, however...
it looks like you didn't activate CDP Mode with the newer driver, so it doesn't have the CDP Mode methods.

Also looks like some import parts are missing (failure was on line 315, but you didn't show that many lines).
A minimal, self-contained code block to reproduce the issue would be more helpful in the future.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mdmintz
Comment options

@ZcodeZ777
Comment options

@mdmintz
Comment options

@ZcodeZ777
Comment options

@mdmintz
Comment options

Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants