Intelligent Automation & Macro Software  

Go Back   Tethys Solutions Forums > Products Zone > Testing Anywhere
Register FAQ Search Today's Posts Mark Forums Read

Testing Anywhere Post messages and questions related to Testing Anywhere here.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-20-2010, 02:35 AM
Lisa Velez Lisa Velez is offline
Junior Member
 
Join Date: May 2009
Posts: 4
Default Website Testing

How can i test fields that are visible on selecting specific list item from a dropdown?

-Lisa
Reply With Quote
  #2 (permalink)  
Old 01-20-2010, 05:13 AM
Aditservice Aditservice is online now
Junior Member
 
Join Date: Jan 2010
Posts: 4
Post Test fields that are visible on selecting a specific list item

To check the values in specific fields that only appear when a certain value is selected from a dropdown list; you have to script that specifically using a If condition Then action(s) End If branch within your test script.

Code:
If valueToSelect = "MyDesiredValue1" Then 
         Place the test script actions for these specific fields here
End If
If valueToSelect = "MyDesiredValue2" Then
         Place the test script actions for other specific fields that appear now.
End If
Reply With Quote
  #3 (permalink)  
Old 01-20-2010, 06:18 AM
forumsupport forumsupport is online now
Senior Member
 
Join Date: Apr 2007
Posts: 1,063
Default

Hello,

In addition, to test the existence of a web control on webpage, you can use 'Insert Check Point: Web Object Exists' command. You can capture the specific control using Advanced options of command.

We have attached a sample test case for your reference.

Hope that helps.
Attached Files
File Type: zip Sample4Lisa.zip (1.3 KB, 4 views)
Reply With Quote
  #4 (permalink)  
Old 01-21-2010, 02:57 AM
Aditservice Aditservice is online now
Junior Member
 
Join Date: Jan 2010
Posts: 4
Post Alternative to using Checkpoint

The challenge with the selected web page is that
the fields are already present in the page but their style display attribute is set to none making the field invisible to the user but not to the software.

When scripting a webpage it does help to take a look at the source of the webpage.
Right click on the page and then select View Source.
You will find the following HTML line
Code:
<tr id=companyRow style=display:none>
To check for this company textbox object to exist use the If Windows Object Exists approach.

Please see the attached zip file for reference.
Attached Files
File Type: zip Sample4Lisa_1.zip (2.0 KB, 1 views)
Reply With Quote
Reply


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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -7. The time now is 07:13 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 ©2007, Crawlability, Inc.
Copyright © 2003-2008 Tethys Solutions, LLC. All rights reserved