A
A
alcesta2015-07-02 17:50:17
Python
alcesta, 2015-07-02 17:50:17

Python syntax error. Why does the pittosha swear?

Can you please tell me why it swears at "control"? Writes unresolved reference "control"

dropDownMenu = browser.find_element_by_xpath("//select[@class="form-control"]/option[text()="Слушать"]").click()
                                                                                                                      ^
SyntaxError: invalid syntax

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vov Vov, 2015-07-02
@balamut108

Escape quotes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question