It’s a string. I’ve tried changing it to a string, generic, and I’ve even tried changing it to a Jobject.
I’ve been stuck on this one dropdown list for 2 days. I just want it to select the string I want.
I think that because of the way this webapp was built, it’s really difficult to find a good selector.
Here is the full Selector for the SPAN element that contains the two DIVs
I want to select only one of the DIVs
<html title='QBAT Portal' />
`<webctrl css-selector='body>div>div>div>div>table>tbody>tr>td>div>table>tbody>tr>td>div>div>div>table>tbody>tr>td>table>tbody>tr>td>div>table>tbody>tr>td>div>span' idx='2' parentid='rc' tableRow='13' tag='SPAN' />`
Here is the list of attributes
Here is how it’s laid out on the page.
I already have a variable that is going to store the string I’m searching for in the dropdown list called adjReason.
Which contains something usually like this: “Service & Equipment (MR/SC)”
I tried replacing the & with * And the invalid cast exception went away, but then it couldn’t find the element, wasn’t a good selector…
Nothing I’m trying is working. I just want it to click on the option I want it to click on!
I’m starting to get frustrated because I’ve been on this one problem for so long.
I’m off work now, I’ll be back on tomorrow. If you have any ideas please share.
Note: The only thing I was able to successfully do so far was to use a find children activity to find the elements inside the SPAN, and I’m able to loop through them until the item.Get(“innertext”) = adjReason.
The problem I had doing it that way, is that the list of reasons can be pretty long, so I wanted to use a one liner type of query so that I could only retrieve that one element from the list of reasons and then click on it. But I haven’t had any luck there either. I did post that issue as well on the forum.