You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got a page with buttons that appear dynamically upon certain changes.
Clicking one of those buttons loads up a react overlay that has a 'confirm' button <button type="button">Confirm</button>
that I need to click, but no matter which selector, Xpath or click method I use, SB tells me that the element is not visible.
Locating it with sb.get_element("//button[text()='Confirm']") returns an element, but adding a .click() to it doesn't work. It says it's not interactable, even though I can click it with my mouse.
sb.is_text_visible() is able to see text present on that overlay, which tells me that Selenium can see it, but confuses me as to why it can't see the button.
sb.show_element doesn't help either.
I am considering just using pyautogui at this point, but I'd rather be able to click it with Selenium. Would appreciate any pointers.
There's sb.js_click(selector) for clicking elements that are not visible or not interactable due to another element receiving the click. (That could happen if there's an overlay that got in the way.)
There's sb.js_click(selector) for clicking elements that are not visible or not interactable due to another element receiving the click. (That could happen if there's an overlay that got in the way.)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
There's
sb.js_click(selector)for clicking elements that are not visible or not interactable due to another element receiving the click. (That could happen if there's an overlay that got in the way.)