I know this question has been asked a million times here and I have tried them all, I still can't get my python code to click a button!
So here's the result of the inspect element of said button: <input value="New Quote" class="btn" name="new_quote_wizard" title="New Quote" type="button" onclick="if (window.invokeOnClickJS_00bC0000001TjBl) window.invokeOnClickJS_00bC0000001TjBl(this); else if (parent.window.invokeOnClickJS_00bC0000001TjBl) parent.window.invokeOnClickJS_00bC0000001TjBl(this); return false">
I've tried this:
browser.find_element_by_name('New Quote').click()
but it returns with this error:
selenium.common.exceptions.NoSuchElementException: Message: Unable to locate element: [name="New Quote"]
What else can I do to click this one button?
New Quote
, which is thevalue
, but rather fornew_quote_wizard
, which is thename
.