Dropdown Internet Explorer


#1

Hello,

I have to work with a very long dropdown list on a site that can only be accessed on IE. I’m wondering what is the best way to handle dropdown lists in IE. This is what I have so far

cap11

but this doesn’t work because I get this error

cap12

Does anyone have a better idea? I know I can’t use XPath on IE so…

Thanks.


#2

Hi, @scarlett_njeri
I dont really get the question

  1. Can you show the dropdown?
  2. What do you need to do with it?
  3. Why do you use OCR actions to get dropdown?

Need to investigate why OCR fails:

  1. Service is not running (tray menu)
  2. No output variable in OCR action
  3. Old version (not 1.1.5)

If none of the above, please send logs from
INSTYALL_DIR/OCR/logs/rest
(just add 2 log files with logs and attach here)


#3

So I have an Excel file with values and I have to select the value from the dropdown list Excel file on the list and click on it. My dropdown list looks like several pages of this:

1504635529065

I’m using OCR because I’m not sure how else to deal with dropdown lists on IE since I don’t have the XPath option. My idea was to capture the text on the different pages and then join them into a string that I can search through. Clearly not optimal. At this point I’m installing the new version.


#4

Hi, I posted what you asked for, I still haven’t figured it out. Do you have any ideas?

Thank you.


#5

you can use XPath selectors in any browser, but the IE does not have an embedded tool to get the XPath automatically.

A workaround can be found here - https://stackoverflow.com/questions/1990225/finding-an-elements-xpath-using-ie-developer-tool

this excel-based tool works really fine - https://code.google.com/archive/p/fire-ie-selenium/downloads

If you have difficulties with building XPath expressions, paste here the source code of your web page and tell us which element are you trying to locate.