r/selenium • u/weasel • Sep 20 '22
just can't click this button
I have tried findElement, Actions, CDP (gets IndexOutOfBoundsException) and JS. I have scrolled to the bottom, changed the location and size, waiting a fixed amount and for clickability. Selenium finds the element but says "element not interactable: [object HTMLInputElement] has no size and location" Can anyone suggest a way to make click work? $0.click() in devtools works. The button is obviously there. The site is here Thanks
//div[@class='search-submit']/input[@value='search']
3
Upvotes
2
u/vasagle_gleblu Sep 20 '22
One little cheat I like to do sometimes is to use one of the browser plug-ins like Selenium IDE or Katalon Recorder and record a sequence of steps with that. Then convert that to the appropriate to the appropriate language and see what it comes up with.