shine-jayakumar / insta-likecom-bot

Automates likes and comments on an instagram account or tag
MIT License
136 stars 29 forks source link

Unable To Like And Comment On Stories #104

Closed shine-jayakumar closed 6 months ago

shine-jayakumar commented 8 months ago

Tests failed - Like, Comment on stories

synopsis8 commented 7 months ago

Before even like and comment on stories, I would like first to pause them. And this is where I encounter issues.

In "insta.py" function "pause_story" I have replaced the line wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, '._ac0m'))).find_element(By.CSS_SELECTOR, 'svg[aria-label="Pause"]').click() to wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, '._ac0m'))).find_element(By.CSS_SELECTOR, 'svg[aria-label*="Pause"]').click() or wait.until(EC.presence_of_element_located((By.CSS_SELECTOR, '._ac0m'))).find_element(By.CSS_SELECTOR, 'svg[aria-label*="Pause"]').click()

In order to match several languages for the webdriver : no success, I'm ending up in error *] => [pause_story] Error: TimeoutException

Then I have tried the selection using the XPATH instead wait.until(EC.presence_of_element_located((By.XPATH, '//button[@class="x1lliihq x1n2onr6 xq3z1fi"]'))).click() There I'm not lucky either