0

I need to select an element from a drop-down menu.

<div class="selectric">
    <select>
        <option value="10">View 10</option>
        <option value="50">View 50</option>
        <option value="100">View 100</option>
        <option value="1000">View All</option>
    </select>
</div>

First I have to click on it. I do this:

select = Select(driver.find_element_by_xpath('//*[@id="root"]/div/div[2]/div/div[4]/div/div/div/div[2]/div[1]/div[1]/div[2]/div/div[1]/div/div/select'))

select.select_by_visible_text('View All')
select.select_by_value('10000')

I tried to do it but it did not work