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. |
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 ...
|
|||||||
|
|||
|
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. |
| Sponsored Links |
|
|||
|
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. |
|
|||
|
Re: WebButton and WebCheckBox Properties
Quote:
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. |
|
|||
|
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 |
| The Following User Says Thank You to thangs77 For This Useful Post: | ||
|
|||
|
Re: WebButton and WebCheckBox Properties
Quote:
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..? |
|
|||
|
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. |
|
|||
|
Re: WebButton and WebCheckBox Properties
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.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
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 |