Answer the question
In order to leave comments, you need to log in
Python + selenium how to send the comment I want to youtube?
I need to poison comments in yotube (under different accounts)
I did almost everything I need, I can’t get selenium to write a comment in the line (I tried everything, I can’t understand what’s wrong)
browser=webdriver.Chrome(https://youtube.com/watch)
browser.get("https://www.youtube.com/watch?v=4ZHwu0uut3k")#для примера
place_block = browser.find_element_by_xpath('//*[@id="mirror"]')#все перепробовал и с задержка и скролить, ждать пока
place_block.send_keys('dsfwefr gwerg erwrg efwg reg ')
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/28266670/how-t... have you already tried this?
I dare say you're looking for the wrong element to write to,
try this
$("paper-input-container#input-container textarea#textarea")
driver.execute_script('document.getElementById("contenteditable-textarea").innerText=arguments[0]', 'wrthy wrytwrey weryw eryw')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question