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


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


danciu2010 wrote Feb 13, 2012 at 3:16 PM

Can be fixed.


danciu2010 wrote Feb 13, 2012 at 3:17 PM

and Form1.cs

balassy wrote Sep 10, 2012 at 6: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 1: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 7: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.