Katalon Recorder - daniel-qa/Web_UI_Test GitHub Wiki

Katalon Recorder

Katalon Recorder Command Line

javascript

  • run script
document.getElementsByClassName('ivu-icon-md-text')[0].style.display='none';

document.getElementsByClassName('ivu-icon-md-text')[0].style.display='block';

element 要加 Index 指定位置,才能執行,比如: [0]

https://www.w3schools.com/jsref/prop_style_display.asp

document.getElementById("myDIV").style.display = "none";
  • js
 var x = document.getElementsByClassName("example");
    x[0].innerHTML = "Hello World!";

Store Attribute

storeAttribute    //a[@class='myclass']@href   x 

Store Value

(Command | Target | Value)

storeValue | id=_application_enquiry_portlet_WAR_morcmsportlet_custId | customerID |

When I run this, the test log does return this message after that line is run:

[info] Store 'AA12345' into 'customerID' But when I try to call the saved value again on a different test case (but the same test suite) in a search engine like this:

 echo | ${customerID} | |