Answer the question
In order to leave comments, you need to log in
How to search through xpatch+ regular expressions?
All with the coming!
Can't get element for python+selenium script. How to find this element?
numbers are dynamic.Thanks1483346727727127-tokenfield
<input class="token-input tt-input" autocomplete="off" placeholder="To" id="1483346727727127-tokenfield" tabindex="1" style="min-width: 60px; width: 390px; position: relative; vertical-align: top; background-color: transparent;" spellcheck="false" dir="auto" type="email">
Answer the question
In order to leave comments, you need to log in
And what's the problem with searching by class?
If xpath then://input[@class="token-input tt-input"]
More specifically, then
or
But if, nevertheless, you want xpath, then
driver.find_element_by_xpath('//input[@class="token-input tt-input"]')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question