skip to Main Content

Run selenium with cache on centos/linux

I'm able to run selenium on non GUI centos/linux machine in headless mode. I have been trying to run it with cache enable by passing below chromeoptions arguments. chromeOptions.addArguments("user-data-dir=~/.config/google-chrome"); It has started fine and identified elements till login page(which is…

VIEW QUESTION

I need send copied text in telegram bot using selenium-chromedriver – Telegram API

element = browser.find_element_by_xpath("//div[@class='span12']") # send the copied text back context.bot.send_message(chat_id=update.message.chat_id, text=element) #come error element = browser.find_element_by_xpath("//div[@class='span12']") 2021-10-15 05:34:51,229 - telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception ........................ raise TypeError(f'Object of type {o.__class__.__name__} ' TypeError: Object of…

VIEW QUESTION

Page reloads after submitting the 2captcha token – Twitter API

I'm trying to signup on twitter using selenium and using 2captcha API to solve the captcha but for some reason when clicking continue the page refreshes and doesn't proceed captchaInput = twitter_driver.find_element_by_id('g-recaptcha-response') print("Text area set to visible") twitter_driver.execute_script("arguments[0].setAttribute('style','display:visible;');", captchaInput) time.sleep(5)…

VIEW QUESTION
Back To Top
Search