2

Resolved

Record ‘=’ (equal) button from a calculator.

description

Record ‘=’ (equal) button from a calculator.
e.g. http://www.onlinecalculator.info
 
 
The code is generated.
public CUITe_HtmlInputButton btn = new CUITe_HtmlInputButton("Id==2");
 
See: ==
 
 
When run the program an exception appears.
Test method CalculatorOnline.CalculatorTestCases.CodedUITestMethod1 threw exception: CUITe.CUITe_InvalidSearchParameterFormat: Search Parameter Format is not valid -> 'Id==2', should be like 'sKey1=sValue1;sKey2=sValue2;'.

file attachments

comments

danciu2010 wrote Feb 13, 2012 at 4:16 PM

Can be fixed.

Check
////////////////////////////alin

danciu2010 wrote Feb 13, 2012 at 4:17 PM

and Form1.cs

balassy wrote Sep 10, 2012 at 7:07 AM

The same is true for URLs, for example this fails with the same error message because of the equal sign in the value:
public CUITe_HtmlImage imgGravatar = new CUITe_HtmlImage( "Id=imgGravatar;Src=http://www.gravatar.com/avatar/?s=50&d=mm" );

The bug is in the searchProperties parsing in CUITe_ControlBase.ctor.

Thanks for fixing.

icnocop wrote Jan 17, 2013 at 2:23 AM

Thank you for the patch.

However, I am not sure if this will cause other issues; adding some unit tests will convince me.

For example, create a unit test based on the specific example in the description of the patch.

icnocop wrote Feb 14, 2013 at 8:33 AM

This is fixed in changeset #24143
Merged Patch #13466 by dubsnz.
The parsing of search properties in CUITe_ControlBase now allows for search properties that contained = or ~ characters.
This change causes the parsing to only split on the first instance of these characters, so replacing "=" with "equals" is not required.