This is a migrated thread and some comments may be shown as answers.

Problem with Comma While FindExpressionCollection<HtmlFindExpression>.Load

4 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Koti Reddy
Top achievements
Rank 1
Koti Reddy asked on 23 Apr 2011, 02:21 AM
Hi,

I have an issue with the FindExpressionCollection<HtmlFindExpression>.Load(string filename)

if it try loading a file that has XPaths with sub functions such as

<?xml version.....

<FindExpressionICollectionOfHtmlFindExpression>

<FindExpressionItem key="a">XPath="//a[contains(@href,'myownvalue')]"</FindExpressionItem>

</FindExpressionICollectionOfHtmlFindExpression>


So the problem here is while loading due to comma between @href and the value Load method is considering this to be two clauses, where it is only one clause, is there any way to instruct the load method to consider this to be one comma?????

PS: What I am explaining here is just an example but I have a large number of such XPaths to be taken care of so, please do not tell me a different way to find the anchor with href myownvalue.

Thanks,
Koti Reddy. S

*Telerik Admin edited this post because of innapropriate language

4 Answers, 1 is accepted

Sort by
0
Koti Reddy
Top achievements
Rank 1
answered on 25 Apr 2011, 08:26 PM
Can anyone help here ???
0
Stoich
Telerik team
answered on 03 May 2011, 12:02 PM
Hi Koti,
   I couldn't get this to work at all. Are you sure your Xpath expression is exactly as follows:
XPath="//a[contains(@href,'myownvalue')]" because Test Studio doesn't seem to think that's valid.

Could you use Xpath=//a[@href=myownvalue'] instead or it definitely must be "contains" and not equal?

Hope to hear from you soon.

Regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Srinivas
Top achievements
Rank 1
answered on 25 May 2011, 02:04 PM
Hi ,
I am trying to use .settings to pass UI objects in visual studio VB.Net..

Like, i added a settings file (Rught click on project in Vstudio ->Add new item ->Geneeral->Settings)...
I added webaii references for my project as well..
So, in settings file , i added a user friendly name for my UI object, then the type of tat object is Artoftest.webaii.htmlcontrols.htmlcontrol , scope is user and the value of the object could be like what format?
0
Stoich
Telerik team
answered on 31 May 2011, 04:34 PM
Hello Srinivas,
   you seem to have opened a separate forum thread on this. I've answered your question there.

Regards,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Koti Reddy
Top achievements
Rank 1
Answers by
Koti Reddy
Top achievements
Rank 1
Stoich
Telerik team
Srinivas
Top achievements
Rank 1
Share this question
or