Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
QuestionSummary Report in GridView Pin
sk_ko14-Aug-14 22:02
sk_ko14-Aug-14 22:02 
AnswerRe: Summary Report in GridView Pin
Chris Quinn14-Aug-14 22:36
Chris Quinn14-Aug-14 22:36 
AnswerRe: Summary Report in GridView Pin
Mycroft Holmes14-Aug-14 23:00
professionalMycroft Holmes14-Aug-14 23:00 
GeneralScope of Share point and Silverlight Pin
Member 1059394814-Aug-14 3:40
Member 1059394814-Aug-14 3:40 
GeneralRe: Scope of Share point and Silverlight Pin
Richard MacCutchan14-Aug-14 4:22
mveRichard MacCutchan14-Aug-14 4:22 
Questionhow do i make each combo box to show a dropdown of the value of the Quantity it has fetched. Pin
Member 1050484913-Aug-14 9:02
Member 1050484913-Aug-14 9:02 
SuggestionRe: how do i make each combo box to show a dropdown of the value of the Quantity it has fetched. Pin
ZurdoDev13-Aug-14 9:24
professionalZurdoDev13-Aug-14 9:24 
QuestionHow to increment div count in path Pin
Member 1098388513-Aug-14 6:09
Member 1098388513-Aug-14 6:09 
I am testing a communicator frame where I have blocks of message contents which are pulled from database using visual studio telerik framework.

each message in database represents a Div on the UI.
each div has path something like
`
Pages.CareMechanix.FrameCommunicator.DOBDiv
   Pages.CareMechanix.FrameCommunicator.DOBDiv0
   Pages.CareMechanix.FrameCommunicator.DOBDiv1
   Pages.CareMechanix.FrameCommunicator.DOBDiv2

`

I am getting the number of divs by `Pages.CareMechanix.FrameCommunicator.Find.AllByAttributes("class=cm-alert").Count;`

I am verifying if the number of messages in database is equal to number of divs.

In similar way, I want to verify the content in each div content is equal to corresponding message in database.

I would definitely not want to access each div content separately by path like below:

`Pages.CareMechanix0.FrameCommunicator.**DOBDiv**.AssertContent().TextContent(ArtOfTest.Common.StringCompareType.Contains, "| DOB: 00/27/1974" + "Patient ID: " + PatientID + sub);

    Pages.CareMechanix0.FrameCommunicator.**DOBDiv0**.AssertContent().TextContent(ArtOfTest.Common.StringCompareType.Contains, "| DOB: 00/27/1974" + "Patient ID: " + PatientID + sub);

    Pages.CareMechanix0.FrameCommunicator.**DOBDiv1**.AssertContent().TextContent(ArtOfTest.Common.StringCompareType.Contains, "| DOB: 00/27/1974" + "Patient ID: " + PatientID + sub);`


I would like to run a loop for the count to verify the text content.
**I am not sure of how to get each div content using a loop.**

Can someone please help me on this?

Please let me know if I am not clear anywhere.
I can explain.
Questionc# Play Video Fullscreen Pin
Member 416962813-Aug-14 5:20
Member 416962813-Aug-14 5:20 
AnswerRe: c# Play Video Fullscreen Pin
Simon_Whale13-Aug-14 5:41
Simon_Whale13-Aug-14 5:41 
GeneralRe: c# Play Video Fullscreen Pin
Member 416962813-Aug-14 5:53
Member 416962813-Aug-14 5:53 
GeneralRe: c# Play Video Fullscreen Pin
Dave Kreskowiak13-Aug-14 6:05
mveDave Kreskowiak13-Aug-14 6:05 
GeneralRe: c# Play Video Fullscreen Pin
Member 416962813-Aug-14 8:42
Member 416962813-Aug-14 8:42 
GeneralRe: c# Play Video Fullscreen Pin
Dave Kreskowiak13-Aug-14 12:27
mveDave Kreskowiak13-Aug-14 12:27 
GeneralRe: c# Play Video Fullscreen Pin
Bernhard Hiller13-Aug-14 21:48
Bernhard Hiller13-Aug-14 21:48 
Question[CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true Pin
Member 1062093513-Aug-14 4:17
Member 1062093513-Aug-14 4:17 
SuggestionRe: [CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true Pin
Richard Deeming13-Aug-14 4:57
mveRichard Deeming13-Aug-14 4:57 
GeneralRe: [CheckBox ComboBox] Strange problem with ComboBox.CheckBoxItems[].Checked = true Pin
Member 1062093513-Aug-14 20:02
Member 1062093513-Aug-14 20:02 
QuestionRegarding the usage of generic in real life Pin
Tridip Bhattacharjee12-Aug-14 21:20
professionalTridip Bhattacharjee12-Aug-14 21:20 
AnswerRe: Regarding the usage of generic in real life Pin
Manfred Rudolf Bihy12-Aug-14 21:51
professionalManfred Rudolf Bihy12-Aug-14 21:51 
GeneralRe: Regarding the usage of generic in real life Pin
Tridip Bhattacharjee12-Aug-14 23:18
professionalTridip Bhattacharjee12-Aug-14 23:18 
GeneralRe: Regarding the usage of generic in real life Pin
Debabrata TPX12-Aug-14 23:49
Debabrata TPX12-Aug-14 23:49 
GeneralRe: Regarding the usage of generic in real life Pin
Tridip Bhattacharjee13-Aug-14 21:25
professionalTridip Bhattacharjee13-Aug-14 21:25 
GeneralRe: Regarding the usage of generic in real life Pin
Pete O'Hanlon13-Aug-14 21:46
mvePete O'Hanlon13-Aug-14 21:46 
GeneralRe: Regarding the usage of generic in real life Pin
Pete O'Hanlon12-Aug-14 23:50
mvePete O'Hanlon12-Aug-14 23:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.