I've having trouble detecting an element using Telerik Test Studio. It's an element in Sharepoint Online in IE11.
I'm looking to click and select the "Business Development CORP Set" selection as shown in image (Business Development CORP set.PNG) but Telerik Test Studio can't detect the element.
When i use normal recording option, Telerik just able to detect the container of the selections but no the individual selections. (Cointaner.PNG)
I tried using coded step based on the DOM but still unable to detect the particular selection and the assert fails. As the element is nested in the DOM, i used these codes :
Element documentSet = Find.ByAttributes("id=ctl00_PlaceHolderMain_ctl00_SelectCandidate", "multiple=multiple" ,"value=0x0120D520002D8D5909BD994D82BE83C7681DC18B2F");
Assert.IsNotNull(documentSet , "Record not found.");
Here's the screen shot of the DOM (DOM1.PNG). As there are two values for "title" parameter, i had to use the "value" parameter. (Tried "title =Business Development CORP Set") but still unable to detect.
Here's are the tags as per image DOM1.PNG
<select name="ctl00$PlaceHolderMain$ctl00$SelectCandidate" title="Possible values" id="ctl00_PlaceHolderMain_ctl00_SelectCandidate" style="width: 190px; height: 150px; overflow: auto;" ondblclick="GipAddSelectedItems(ctl00_PlaceHolderMain_ctl00_Picker_m); return false" onchange="GipSelectCandidateItems(ctl00_PlaceHolderMain_ctl00_Picker_m);" multiple="multiple">
<option title="Business Development CORP Set" value="0x0120D520002D8D5909BD994D82BE83C7681DC18B2F">Business Development CORP Set</option>
Hope you guys can give some guides :)