PostToFacebook.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:Taurauto-Sharer 作者: sameerkumar18 项目源码 文件源码
def process(self,caption_text):

        time.sleep(1)

        caption_text



        #self.driver.get("https://www.facebook.com")
        actions = ActionChains(self.driver)
        time.sleep(2)
        actions.send_keys('p').perform()
        time.sleep(1)

        caption = ActionChains(self.driver)
        caption.send_keys(caption_text).perform()


        click_post = self.driver.find_element_by_xpath('//div[2]/div[3]/div/div[2]/div/button')
        click_post.click()

        print "Successfully posted "
        self.driver.close()
#text = raw_input("Enter text to be posted - ")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号