# Solutions to common Test Designer IDE Challenges
)%20%20%20%20%20//%20%22%2419.99%22Store%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%24floatingValue%20%20%7C%20%20parseFloat(%24stringValue.substring(1))%20%20%20//%20removes%20the%20%24%20then%20convertes%20%2219.99%22%20to%20a%20floating%20number%20%0D%0AAssert%20Greater%20Than%20%20%7C%20%20%24floatingValue%20%20%7C%20%2015
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Numbers:%20convert%20a%20string%20value%20to%20an%20integer%20number
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20When%20needing%20to%20perform%20math%20operation%20so%20often%20you%20need%20to%20convert%20a%20number%20in%20string%20format%20to%20an%20actual%20integer%20%0D%0AStore%20%20%20%7C%20%20%20%24integerValue%20%20%20%7C%20%20%20parseInt(span(%22item-quantity%22))
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
Tables:%20getting%20the%20number%20of%20rows%20in%20a%20table%20using%20ds%24
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20Assuming%20the%20table%20has%20an%20id%20myTable%20you%20can%20get%20the%20number%20of%20rows%20in%20the%20IDE%20using:%20%0D%0AStore%20%20%7C%20%20%24rowsQuantity%20%20%7C%20%20_eval(%22ds%24('#myTable%20tbody%20>%20tr').length%22)%0D%0Aor%0D%0AStore%20%20%7C%20%20%24rowsQuantity%20%20%7C%20%20getLength(%22ds%24('#myTable%20tbody%20>%20tr')%22)%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20An%20alternate%20way%20is%20to%20use%20the%20getLength%20function:
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20Assuming%20the%20table%20has%20an%20id%20myTable%20you%20can%20get%20the%20number%20of%20rows%20in%20the%20IDE%20using:%20%0D%0AStore%20%20%7C%20%20%24rowsQuantity%20%20%7C%20%20getLength(%22#myTable%20tbody%20>%20tr%22)
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Tables:%20getting%20the%20column%20index%20with%20a%20given%20header%20using%20ds%24
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20You%20can%20use%20the%20jQuery%20index()%20function%20to%20find%20the%20column%20index%20of%20a%20table%20that%20contains%20certain%20text%20%22MyHeader%22.%20REF:%20https://api.jquery.com/index/%0D%0AStore%20%20%7C%20%20%24columnIndex%20%20%7C%20%20_eval(%22ds%24('thead%20th:contains(MyHeader)').index()%22)+1%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Tables:%20Iterate%20over%20a%20table%20to%20process%20all%20the%20cells%20values%20of%20a%20given%20column%20using%20ds%24
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20If%20you%20need%20to%20iterate%20over%20a%20table%20column%20to%20process%20the%20contents%20of%20a%20certain%20column%20you%20can%20use%20above%20functions%20to%20get%20the%20total%20number%20of%20%0D%0A//%20rows%20in%20the%20table%20and%20the%20column%20that%20has%20the%20appropiate%20heade%20and%20then:%0D%0AStore%20%20%20%7C%20%20%24rowIndex%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%201%0D%0AWhile%20%20%20%7C%20%20%24rowIndex%20<%20%24rowsQuantity%0D%0A%20%20Store%20%7C%20%20%24cellValue%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20_eval(%22ds%24('tbody%20tr:nth-child(%22+%24rowIndex+%22)%20td:nth-child(%22+%24columnIndex+%22)').text()%22)%0D%0A%20%20%5B%20do%20something%20with%20%24cellValue%20%5D%0D%0A%20%20Store%20%7C%20%20%24rowIndex%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20%24rowIndex%20+%201%0D%0AEnd%20While%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20General:%20close%20browser%20window.
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
//%20If%20the%20application%20does%20not%20provide%20a%20button%20to%20close%20the%20window,%20need%20to%20insert%0D%0A//%20the%20link%20and%20click%20it%20with%20following%20lines.%20%0D%0ACustomJS%20%20%7C%20%20%22ds%24('body').append('<a%20id=%5C%22aiq-close%5C%22%20href=%5C%22javascript:close_window();%5C%22>aiq-close</a>')%22Click%20%20%20%20%20%7C%20%20link(%22aiq-close%22)%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20General:%20get%20an%20attribute%20value%20of%20an%20element
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
Store%20%20%20%20%20%7C%20%20%20%24url%20%20%20%7C%20%20getAttribute(link(%22id%22),%22href%22)
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20General:%20confirm%20an%20element%20is%20disabled
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
Set%20FindOnlyEnabled%20%20%7C%20%20false%20%20%20%20%20%20%7C%20%0D%0AStore%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20submitdis%20%20%7C%20%20getAttribute(button(%22cancellation-submit%22),%22disabled%22)%0D%0ASet%20FindOnlyEnabled%20%20%7C%20%20true%20%20%20%20%20%20%20%7C%20%0D%0AAssert%20Equal%20%20%20%20%20%20%20%20%20%7C%20%20submitdis%20%20%7C%20%20%22disabled%22
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20General:%20get%20a%20dynamic%20value%20and%20use%20it%20elsewhere
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
Get%20from%20Whiteboard%20%7C%20%20%24caseNum%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%22CaseNumber%22Click%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20link(%22Case%20Search%22)%20%20%20%20%20%20%7C%0D%0ASet%20Value%20%20%20%20%20%20%20%20%20%20%20%7C%20%20textbox(%22form-control%22)%20%20%7C%20%24caseNum%0D%0AClick%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20submit(%22Search%22)%20%20%20%20%20%20%20%20%20%7C%20%20%0D%0AStore%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20caseName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20getText(cell(1,_near(span(%5B%22caseNameLabel%22%5D))))%0D%0AClick%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C%20%20link(%24caseNum)%20%20%20%20%20%20%20%20%20%20%20%7C%0D%0ASelect%20Window%20%20%20%20%20%20%20%7C%20%20caseName%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7C
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
Links%20to%20other%20common%20challenges:
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20
%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20Last%20updated:%20October%2016,%202026
)