The element I'm trying to access is a dropdown, popup, not sure about this. What's supposed to happen is that I enter an ID into the input field then it takes a few seconds to load and search that in the database, if found it reloads and then I am supposed to click on that in the dropdown. I'm able to locate the element and then enter the required ID, it then reloads but once loaded in the dropdown/popup, I am not able to select that. Below are the screenshots: ( Before | After )
Below is the code I'm using:
elem = all_rows[1].find_element(By.CSS_SELECTOR, "div.MuiAutocomplete-root.autoSearchAutoRoot")
rt_id_enter = all_rows[1].find_element(By.TAG_NAME, "input")
rt_id_enter.send_keys(str(df['RT ID'][0]))
wait = WebDriverWait(driver, 10)
rt_id_select = all_rows[1].find_element(By.TAG_NAME, "input")
rt_id_select.click()
The element I am trying to access is a dropdown, popup, not sure about this. What supposed to happen is that I enter an ID into the input field then it takes a few seconds to load and search that in the database, if found it reloads and then I am supposed to click on that in the dropdown. I am able to locate the element and then enter the required ID, it then reloads but once loaded in the dropdown/popup, I am not able to select that.
value="39897"
. You need to find the HTML of the dropdown with "TR for 6th Apr...". We aren't going to be able to help unless you can provide the URL to the site.