How to Fix Cannot Use Parenthesis When Calling a Sub Error in UFT?

This is one of the common errors in UFT. There are different scenarios where this error will occur. Below is one if the scenarios.

When you are trying to call a function name without using “Call” keyword in front of the function name, then in such case “cannot use parenthesis when calling a sub “ error  will occur.

For example if you call a function name like

ClickonButton(Browser(“OrangeHRM”).Page(“OrangeHRM”).WebButton(“html id:= btnSave”),”Click on Save Button”)

Then cannot use parenthesis when calling a sub error will occur as shown in below picture.

Solution:

To fix above error you need to write function name along with “Call” keyword as shown below.

Call ClickonButton(Browser(“OrangeHRM”).Page(“OrangeHRM”).WebButton(“html id:= btnSave”),”Click on Save Button”)

                                                OR

Call  FunctionName “ ParanthesisValue”

38 thoughts on “How to Fix Cannot Use Parenthesis When Calling a Sub Error in UFT?”

  1. Helpful information. Lucky me I found your website by accident, and I am shocked why this accident did not came about earlier! I bookmarked it. Annnora Cosimo Tade

  2. Hi there, all the time i used to check webpage posts here early in the morning, since i love to learn more and more. Becky Nathaniel Abdu

  3. Everything is very open with a very clear description of the issues. It was truly informative. Your website is extremely helpful. Thank you for sharing! Adrianna Griffie Chae

  4. Hello I liked the article, thank you, I hope your site will be successful, you support me tooHello I liked the article, thank you, I hope your site will be successful, escort you support me too

  5. We’re a group of volunteers and starting a new scheme in our community.
    Your site provided us with valuable info to work on. You’ve done
    an impressive job and our entire community will be thankful to
    you.

  6. The very next time I read a blog, Hopefully it doesn’t fail me as much as this one.
    I mean, Yes, it was my choice to read through, nonetheless I really believed you’d have something helpful to say.
    All I hear is a bunch of crying about something you could possibly fix if you weren’t too busy looking
    for attention.

Leave a Reply

Your email address will not be published. Required fields are marked *