I have been trying to locate to the following element:
<input type="text" ng-change="vm.refreshTimeline()" button-enter="vm.filterRowChange();" ng-model="vm.filterRowValue" class="ng-pristine ng-untouched ng-valid ng-empty">
Its is a search box.
I tried using class name, xpath, css selector but none of these are working. Still i am getting "Unable to locate the element" with the respective attributes.
driver.find_element_by_css_selector('body > div:nth-child(1) > div.uiview.ng-scope > div.container.asset-details.ng-scope > div.row.top-buffer > div > div.GanttController > div.input-append.text-center.search_section.ng-scope > input')
driver.find_element_by_class_name('ng-pristine ng-untouched ng-valid ng-empty')
find_element_by_xpath('/html/body/div[1]/div[2]/div[1]/div[4]/div/div[2]/div[1]/input')
find_element_by_link_text('Search by Equipment ID or S/N')
I even tried using xpath helper to find out the exact xpath, but it is showing an error as:
[INVALID XPATH EXPRESSION]
Help me to overcome this issue.
Thanks in advance.
find_element_by_xpath("""/html/body/div[1]/div[2]/div[1]/div[4]/div/div[2]/div[1]/input""")