D
D
den53232018-10-20 20:10:56
Python
den5323, 2018-10-20 20:10:56

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"]')#все перепробовал и с задержка и скролить, ждать пока

boot up - nothing helps
place_block.send_keys('dsfwefr gwerg erwrg efwg reg ')

Answer the question

In order to leave comments, you need to log in

5 answer(s)
D
Dimonchik, 2018-10-21
@dimonchik2013

where is authentication?

N
NaName, 2018-10-21
@NaName

https://stackoverflow.com/questions/28266670/how-t... have you already tried this?

T
Talik, 2018-10-23
@Talik0507

I dare say you're looking for the wrong element to write to,
try this
$("paper-input-container#input-container textarea#textarea")

E
Emil Revencu, 2018-12-06
@Revencu

driver.execute_script('document.getElementById("contenteditable-textarea").innerText=arguments[0]', 'wrthy wrytwrey weryw eryw')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question