selenium-fb-group-poster icon indicating copy to clipboard operation
selenium-fb-group-poster copied to clipboard

unable to find post button

Open Rashmikid opened this issue 5 years ago • 2 comments

"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) in 16 clickable = True 17 break ---> 18 post_button.click() 19 time.sleep(5)

Rashmikid avatar Apr 21 '19 10:04 Rashmikid

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()

Rashmikid avatar Apr 21 '19 10:04 Rashmikid

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..

iharshit009 avatar Jun 08 '19 06:06 iharshit009