Hello,
I just downloaded the Test Studio to see if it meets our requirements.
However when trying to record a first test I run into the following problem:
If I create a click event on a Button that is coded like this:
<input class="loginInputField" name="j_newUser" type="button" onclick="document.loginForm.j_username.value=checkUserName();document.loginForm.submit();" value="Login"/>
it is working perfectly fine.
However the following Button is not recognized as the ID always changes. The program is stuck at "locating elements":
<input type="button" style="width: 500px;" value="Klärfälle" id="rnd672292135" name="Clarification Cases" class="startPageButton" onchange="showSaveButtons(this); markAsChanged(this);;;" onclick="javascript:loadMacroForm('clarificationCases.xml', 'mainDiv');"/>
I googled a bit and found that i can adress this button using:
Dim e As Element = Find.ByExpression("name=Clarification Cases")
Assert.IsNotNull(e)
Actions.Click(e)
working fine so far. My Problem now is that i have another button of that type, which doesnt have a unique name. When i Try to execute the same bit of code using "Find.ByExpression("value=xxxx")" it won't find the button and abort.
Can anyone tell me how to adress this button?
<input type="button" value="Versichertenorientierten Klärfall anlegen" id="rnd2046738466" name="null" class="button" onchange="showSaveButtons(this); markAsChanged(this);;;"
onclick="javascript:syncMacro('commands/LoadForm','pages/clarificationcase/showClarificationCase.xml,var.clarificationKind=insurant','mainDiv');"/>
Thank you.
I just downloaded the Test Studio to see if it meets our requirements.
However when trying to record a first test I run into the following problem:
If I create a click event on a Button that is coded like this:
<input class="loginInputField" name="j_newUser" type="button" onclick="document.loginForm.j_username.value=checkUserName();document.loginForm.submit();" value="Login"/>
it is working perfectly fine.
However the following Button is not recognized as the ID always changes. The program is stuck at "locating elements":
<input type="button" style="width: 500px;" value="Klärfälle" id="rnd672292135" name="Clarification Cases" class="startPageButton" onchange="showSaveButtons(this); markAsChanged(this);;;" onclick="javascript:loadMacroForm('clarificationCases.xml', 'mainDiv');"/>
I googled a bit and found that i can adress this button using:
Dim e As Element = Find.ByExpression("name=Clarification Cases")
Assert.IsNotNull(e)
Actions.Click(e)
working fine so far. My Problem now is that i have another button of that type, which doesnt have a unique name. When i Try to execute the same bit of code using "Find.ByExpression("value=xxxx")" it won't find the button and abort.
Can anyone tell me how to adress this button?
<input type="button" value="Versichertenorientierten Klärfall anlegen" id="rnd2046738466" name="null" class="button" onchange="showSaveButtons(this); markAsChanged(this);;;"
onclick="javascript:syncMacro('commands/LoadForm','pages/clarificationcase/showClarificationCase.xml,var.clarificationKind=insurant','mainDiv');"/>
Thank you.