Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

WebButton and WebCheckBox Properties

This is a discussion on WebButton and WebCheckBox Properties within the QTP forums, part of the Software Testing category; Hi Friends, I am not able to differentiate a hidden and a visible object(WebButton, WebCheckbox). I have used following properties which are giving me same output at run time in ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Oct 2009
Location: India
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
spreadsmiles is on a distinguished road
WebButton and WebCheckBox Properties

Hi Friends,
I am not able to differentiate a hidden and a visible object(WebButton, WebCheckbox).
I have used following properties which are giving me same output at run time in both the cases (hidden and visible):
1.Visible - True
2.Disabled - 0
3.Exist - True
Smart Identification is disabled.Still I am not able to differentiate.
Could anyone please suggest a solution.
It's very urgent for me.
thanks in advance.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 2 Weeks Ago
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
Re: WebButton and WebCheckBox Properties

Wow! never paid attention to these until reading your post.

Any way, belows are my opinion:

Let's talk about a webButton:

Visible
1) The button must be exist. Otherwise, it cannot be set/checked visible value.
The button is on the page. And it is visible.

Disable
1) The button must be exist. Otherwise, it cannot be set/checked disable value.
The button is on the page and visible. But cannot be acted on such as being cliked on.

Exist
1) The word explain itself

Last edited by learqtptesting; 2 Weeks Ago at 11:33 AM.
Reply With Quote
  #3 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Oct 2009
Location: India
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
spreadsmiles is on a distinguished road
Re: WebButton and WebCheckBox Properties

Quote:
Originally Posted by learqtptesting View Post
Wow! never paid attention to these until reading your post.

Any way, belows are my opinion:

Let's talk about a webButton:

Visible
1) The button must be exist. Otherwise, it cannot be set/checked visible value.
The button is on the page. And it is visible.

Disable
1) The button must be exist. Otherwise, it cannot be set/checked disable value.
The button is on the page and visible. But cannot be acted on such as being cliked on.

Exist
1) The word explain itself
Hi,

But I have used all these options. All these values say that the WebButton exists, visible and not disabled in both the conditions i.e. either the button is visible or not, in the application I am testing. Could anyone Please Suggest some other properties by which I can script in such a way that it validates the WebButton is not present on the screen? Thanks in advance.
Reply With Quote
  #4 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
thangs77 is on a distinguished road
Re: WebButton and WebCheckBox Properties

Hi buddy,

You can check with location of the object, whether the object is preset in the location, through ordinal identifiers.

Please rectify me if i am wrong

Regards,
Thangaraj
Reply With Quote
The Following User Says Thank You to thangs77 For This Useful Post:
  #5 (permalink)  
Old 2 Weeks Ago
Junior Member
 
Join Date: Oct 2009
Location: India
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
spreadsmiles is on a distinguished road
Re: WebButton and WebCheckBox Properties

Quote:
Originally Posted by thangs77 View Post
hi buddy, you can check with location of the object, whether the object is preset in the location, through ordinal identifiers. Please rectify me if i am wrong regards, thangaraj
ordinal identifiers are also not working. but the button is not visible for us.

Actually, i have a radio button and a web button. My scenario is , when i select the radio button, web button should not be displayed and when i don't select the radio button web button should be displayed on the UI. This is what i see (manually) on the UI. But qtp is not showing any difference in the object properties of the object in both the cases, displayed or not. Here goes my code i am experimenting with.

Str=browser("name:=b").page("title:=p").webbutton("name:=wb").getroproperty("...")

whatever the property I am using is giving the same value, when the object is dispalyed as well as not displayed. I wonder how!! there should be some property which differentiates the non display of the object, right? properties i used till now and failed: exists,disabled,isdisabled,checked,hidden,visible and now the ordinal identifiers it's still unsovled

any more suggestions please..?
Reply With Quote
  #6 (permalink)  
Old 2 Weeks Ago
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
Re: WebButton and WebCheckBox Properties

your web page and scenario:

Actually, i have a radio button and a web button. My scenario is,

1) when i select the radio button, web button should not be displayed
2) when i don't select the radio button web button should be displayed on the UI.

I assume that you want check the state of those objects and nothing else.

1) Your 2nd Senairo (You don't do anything) - when access the page and write the code to check the state they should be:

Radio Button:
Visible = Yes (or whatever value of the object represent "Yes" 1 or 0)
Why - See previous post
Disable = Not sure (you didn't mention whether it is clickable or not)
Exist = Yes (or whatever value of the object represent "Yes" 1 or 0)

CheckBox:
Visible = Yes (or whatever value of the object represent "Yes" 1 or 0)
Why - See previous post
Disable = No (or whatever value of the object represent "No" 1 or 0)
Exist = Yes (or whatever value of the object represent "Yes" 1 or 0)

2) Your 1st Senario - when access the page | Click the checkbox and write the code to check the state they should be:

Radio Button:
Visible = No (or whatever value of the object represent "No" 1 or 0)
Why - See previous post
Disable = Not sure (it depends on the design - you can see it by right-click on the page and select "view source)
Exist = No sure (it depends on the design - you can see it by right-click on the page and select "view source)

CheckBox:
Visible = Yes (or whatever value of the object represent "Yes" 1 or 0)
Why - See previous post
Disable = No (or whatever value of the object represent "No" 1 or 0)
Exist = Yes (or whatever value of the object represent "Yes" 1 or 0)


If the results are not like the above and these are critical to your test requirements, I would discuss with developer if I were you.

Last edited by learqtptesting; 2 Weeks Ago at 09:04 AM.
Reply With Quote
  #7 (permalink)  
Old 1 Week Ago
Junior Member
 
Join Date: Oct 2009
Location: India
Posts: 12
Thanks: 3
Thanked 0 Times in 0 Posts
spreadsmiles is on a distinguished road
Re: WebButton and WebCheckBox Properties

Quote:
Originally Posted by thangs77 View Post
Hi buddy,

You can check with location of the object, whether the object is preset in the location, through ordinal identifiers.

Please rectify me if i am wrong

Regards,
Thangaraj
Hi Thank you, this worked. Previously when I told it was not working I was checking with the wrong WebButton. Ordinal Identifiers are zero for the WebButton I need to validate and this is what I need to validate. Thank you so much.
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Web properties are not identified in QTP vinayreddy QTP 2 05-20-2009 12:55 PM
QTP object properties Daffy111210 QTP 1 02-07-2008 11:21 AM
Getting properties and values of MENU Geek_Guest QTP 1 12-21-2007 07:40 PM
two objects even though are having different properties are not recognized Prasanna_r_Hegde QTP 0 07-31-2007 02:58 AM
how to capture properties of an object niharika38 Rational Robot 1 06-01-2007 09:14 AM


All times are GMT -4. The time now is 08:59 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved