Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to run the disbled statement
#1
Solved: 10 Years, 8 Months, 4 Weeks ago
Hello friends, i was checking the disabled property of the Login button by using following statement. but i am getting general run error. DOn't know what is the problem. I have added object to repository.

Code:
button= Browser(actiTIME-Login").Page("actiTIME-Login").WebButton("Loginnow").Object.disabled

Anybody please help me.
Reply
#2
Solved: 10 Years, 8 Months, 4 Weeks ago
Hi Divya,

Improper string declaration @ browser.

Code:
button= Browser(actiTIME-Login").Page("actiTIME-Login").WebButton("Loginnow").Object.disabled

check with this below code:
button= Browser("actiTIME-Login").Page("actiTIME-Login").WebButton("Loginnow").Object.disabled

Let me know if you need any help.
Thanks,
SUpputuri
Reply
#3
Solved: 10 Years, 8 Months, 4 Weeks ago
Since u r checking the run time properties of the object , u should use the DOM

Code:
a=Browser("Google").Page("Google").WebButton("Google Search").Object.disabled
MsgBox(a)

Correct me if wrong.
Regards,
Sankalp
Code:
a=Browser("Google").Page("Google").WebButton("Google Search").Object.disabled
MsgBox(a)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Run a finall Call statement after all iterations mv8167 2 2,409 05-24-2012, 08:12 PM
Last Post: mv8167
  QTP 11 not generating SystemUtil.Run statement softtest12 4 7,713 08-09-2011, 04:27 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)