0

Click not working using variable in testcomplete as following.

var okbtn= "Aliases.LateralData_Applications_Dashboard.LoginForm.btnOK";
  okbtn.ClickButton();

while direct click without variable is working fine as following.

 Aliases.LateralData_Applications_Dashboard.LoginForm.btnOK.ClickButton();

I am using testcomplete 10 and java script

1 Answer 1

1

in your 1st example okbtn is a string,you should do

var okbtn= Aliases.LateralData_Applications_Dashboard.LoginForm.btnOK
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.