Search found 6 matches

by kthomp
Mon Apr 07, 2014 8:39 pm
Forum: General Questions
Topic: Can't automate a right click on a spantag
Replies: 1
Views: 2005

Can't automate a right click on a spantag

I am attempting to automate a right-click on highlighted text that is a spantag. This is the C# code that I am trying to use to set up the keyword: switch (objEle.PreferredCapability.DisplayName) { case "DivTag": DivTag _divTag = (DivTag)objEle; _divTag.Click(System.Windows.Forms.MouseButtons.Right)...
by kthomp
Tue Feb 25, 2014 5:57 pm
Forum: Automation API
Topic: Get the count of the child div tags
Replies: 8
Views: 6804

Re: Get the count of the child div tags

I am answering my own questions... FindChildren instead of FindDescendant (I have 12 now).
by kthomp
Tue Feb 25, 2014 5:48 pm
Forum: Automation API
Topic: Get the count of the child div tags
Replies: 8
Views: 6804

Re: Get the count of the child div tags

I have gotten past the previous error - my xpath was wrong. :(

I am now returning a count of 48 (ALL descendants). Is it possible to specify only descendants one level down, or maybe all descendants of a certain class?
by kthomp
Tue Feb 25, 2014 4:01 pm
Forum: Automation API
Topic: Get the count of the child div tags
Replies: 8
Views: 6804

Re: Get the count of the child div tags

oops - ignore "you got past breakpoint" in error output (I deleted that from the exception and didn't re-run)
by kthomp
Tue Feb 25, 2014 4:00 pm
Forum: Automation API
Topic: Get the count of the child div tags
Replies: 8
Views: 6804

Re: Get the count of the child div tags

I am actually from the same company as Sarath, the original poster, so my application is the same (web app). The code I am running now is: DivTag dt = (DivTag)objEle; IList<DivTag> _dTrows = dt.FindDescendants<DivTag>(); var _dTCounts = _dTrows.Count(); int _dTexpectedRowCount; int.TryParse(strVerif...
by kthomp
Fri Feb 21, 2014 7:16 pm
Forum: Automation API
Topic: Get the count of the child div tags
Replies: 8
Views: 6804

Re: Get the count of the child div tags

Is this solution supposed to give the total ROWs or COLUMNs in the MacroTableBody example? I tried this and divList.Count = 3 instead of the expected 12 (there are 3 columns in this table and 12 rows).