|
I need help in selecting an option ending in specific text from a drop down options box on a web page.
I have a web page with a drop down options box. The options are:
random text here Package1
random text here Package2
random text here AnotherPackage500
several hundred more...
"random text here" changes but the package name is always located on the end.
I need to be able to select the correct option on the drop down options box on the webpage based on what is in my database.
Example:
A record in my database contains "Package2." I can get "Package2" and copy it to the clipboard.
Now I need to select "random text here Package2" in the drop down options box on the web page.
I can click on the options box to open it, but I cannot figure out how to select "random text here Package2"
I could make Package2 equal to two down arrow presses and have that run but that would suck because I would have to program several hundred of them and then if I add a package, they will be off by one.
If the package name was at the begining it would be easy, but it is not. If the text at the begining was always the same it would be easy, but it is not. Does anyone have any suggestions other then assigning each package to a number of down arrow presses?
|
|