def ref(self):
while True:
driver = self.driver
driver.get("https://www.instagram.com/")
time.sleep(2)
element = driver.find_element_by_xpath("//div[@class='FH9sR']/span[text()='Reply']")
element.click()
time.sleep(2)
comment_box = driver.find_element_by_xpath('/html/body/div[1]/section/main/div/div[1]/article/div[2]/section[3]/div/form/textarea')
comment_box.send_keys('@bebinfact هرگز باورت نمیشه اینجا چی هست')
comment_box.send_keys(Keys.RETURN)
nextBut = driver.find_element_by_xpath("//button[contains(.,'Post')]")
time.sleep(5)
nextBut.click()
time.sleep(2)
elemen = driver.find_element_by_xpath("//div[@class='FH9sR']/span[text()='Reply']")
elemen.click()
time.sleep(2)
comment_bo = driver.find_element_by_xpath('/html/body/div[1]/section/main/div/div[1]/article/div[2]/section[3]/div/form/textarea')
comment_bo.send_keys('@bebinfact هرگز باورت نمیشه اینجا چی هست')
comment_bo.send_keys(Keys.RETURN)
nextBu = driver.find_element_by_xpath("//button[contains(.,'Post')]")
time.sleep(5)
nextBu.click()
time.sleep(2)