Closed mcolus closed 4 years ago
I have solved the problem by changing the language in AgentLogic.py to English. In the class IGBot def init (self): the following is inserted:
self.language_button ='//*[@id="react-root"]/section/main/section/div[3]/div[3]/nav/ul/li[11]/span/select'
self.english_language ='//*[@id="react-root"]/section/main/section/div[3]/div[3]/nav/ul/li[11]/span/select/option[6]'
After closing the pop up the following is executed:
#Change Language
try:
webdriver.find_element_by_xpath(self.language_button).click()
sleep(1)
webdriver.find_element_by_xpath(self.english_language).click()
sleep(3)
except:
print("Language not changed")
Nice. Never encountered language option on ig.
Thanks!
În vin., 23 oct. 2020 la 14:40, mcolus notifications@github.com a scris:
Closed #1 https://github.com/ncs15/InstagramBot/issues/1.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ncs15/InstagramBot/issues/1#event-3913526448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AM2YCTQXRRYWROWRM3B6DYDSMFTRJANCNFSM4S32ZWXQ .