selenium-fb-group-poster
selenium-fb-group-poster copied to clipboard
unable to find post button
"post_button = driver.find_element_by_xpath("//*[@data-testid='react-composer-post-button']") clickable = False while not clickable: cursor = post_button.find_element_by_tag_name('span').value_of_css_property("cursor") if cursor == "pointer": clickable = True break post_button.click() time.sleep(5)"
Exception -
ElementNotVisibleException Traceback (most recent call last)
I tried using below code but no luck, any help is highly appreciated.
sleep(5) buttons = driver.find_elements_by_tag_name("button") sleep(5) for button in buttons: if button.text == "Post": button.click()
I think the above code must work because I am getting a successful result through the same code Can you please tell me what is the error you are facing?? so that i can help..