Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using Variable in Checkpoint
#1
Not Solved
I've read several form threads hoping to find an answer to this question and so far have not.

What I'm doing is simple. I have a WebEdit object and in this object, I'm inserting a string concatenated with a variable. It looks like this:

Code:
Browser("salesforce.com - Unlimited").Page("Campaign Edit: New Campaign").WebEdit("Campaign - Campaign Name").Set "Everett Auto Sales" & varDateTime

Once this web page saves, I want to check a WebElement to ensure my object saved the string and variable combination. For example, this is a "name" field and I'm entering something like "Everett Auto Sales3/29/2012 10:15 AM". Once I click the "save" button, I want to check to ensure that a particular Web Element on the subsequent page captured the "name" correctly.

I've looked into creating an environmental variable and calling that into a standard checkpoint parameter, however, based on the concatenation of a string and variable, I just can't get it to work. So, I started playing around with an if/else statement thinking that may be the answer. I tried something like this:

Code:
If Browser("salesforce.com - Unlimited").Page("Campaign: Everett Auto").WebElement("Everett Auto Sales")= "Everett Auto Sales" & varDateTime Then
    micPass
Else
    micFail
End If

Unfortunately, I'm not as skilled as I'd like to be in VB and don't know were to go from here. I'm getting an "Object doesn't support this property or method" error. Even after I get passed that, I'm not sure if the micPass/micFail will even work. Can anyone please provide me some direction? I would assume that putting checkpoints on variables is commonplace, but I just can't seem to get this to work.

Thanks to anyone who can give me direction.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Checkpoint on variable jove1776 1 3,979 11-30-2010, 10:38 AM
Last Post: manishbhalshankar
Wink standard checkpoint and text checkpoint kiran10_rm 1 5,354 11-18-2010, 05:16 AM
Last Post: nandu
  fullscreen and bitmap checkpoint error "Cannot create bitmap checkpoint" meuline 2 4,712 12-10-2009, 09:17 PM
Last Post: meuline
  Checkpoint problems: Checkpoint starts before web page is loaded & therefore fails! IdontGetIt 1 3,917 11-20-2009, 11:45 AM
Last Post: basanth27
  Not able to add any other Checkpoint apart from Standard Checkpoint Rachna 7 8,638 04-02-2009, 11:05 AM
Last Post: nandu

Forum Jump:


Users browsing this thread: 1 Guest(s)