Micro Focus QTP (UFT) Forums
Other Methods to click on submit button in application using Descriptive Programming - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: Other Methods to click on submit button in application using Descriptive Programming (/Thread-Other-Methods-to-click-on-submit-button-in-application-using-Descriptive-Programming)



Other Methods to click on submit button in application using Descriptive Programming - SiD4518 - 04-27-2012

Hi Guys

I'm a new bee to this forum. Today when i attended interview in a company, interviewer asked me, how to click on submit button in web application ?
I answered the question like this "Browser("title:= ).Page("Title:= ).WebButton("name:= ).click " Then he asked me. what are the other ways or methods to click the submit button in descriptive programming. Your help is really appreciated. Thanks in Advance

"Thanks a ton Ankur and all Administrators & Moderators" . You guys are doing a great job.This site's content very helpful to learners like me. Really appreciated. You guys rocks. Once again Smile


RE:Other Methods to click on submitbutton in application using DescriptiveProgramming - kallem rajender - 04-27-2012

Hi what you mentioned is correct. you have mentioned a static DP way. We can mention the dynamic DP way too. which is like
Code:
Browser("title:= ).Page("Title:= ).WebButton(DescObject).click

we can define the object with name 'DescObject'.

'DescObject' is definition of Descriptive object. This is more flexible way of programming.



Kallem Rajender
Hyderabad


RE: Other Methods to click on submit button in application using Descriptive Programming - SiD4518 - 04-27-2012

Hi Rajender

Thank You Smile


_______________________________________________________________
SooryaN.Peela
Bangalore


RE:Other Methods to click on submitbutton in application using DescriptiveProgramming - ravs@788 - 06-02-2012

Hi,

We can use Fireevent "onclick" to click on an object too. This is particularly useful when the Click operation does not work due to some reason. The syntax is

Code:
Browser(B).Page(P).WebButton(W).Fireevent "onclick"

Thank You,
Ravi Shankar


RE: Other Methods to click on submit button in application using Descriptive Programming - supputuri - 06-03-2012

Get the x and y coordinates and then use the shell/device replay to click on the button.