Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Customizing Descriptive Programming
#1
Not Solved
Hi,

I have the below line of codes in DP

Code:
Set  Dbrowser=description.Create
Dbrowser("micclass").value="Browser"
Dbrowser("title").value="Google"

Set  Dpage=description.Create
Dpage("micclass").value="Page"
Dpage("title").value="Google"

Set DWebbutton = Desciption.create
DWebbutton("micclass").value="Webbutton"
DWebbutton("innertext")="Sign In"

Browser(Dbrowser).Page(Dpage).Webbutton(Dwebbutton).click

Can i replace "
Code:
Browser(Dbrowser).Page(Dpage).Webbutton(Dwebbutton)
" with a variable as mypage and use it as mypage.click?

If we cant use the above, can anyone let us know how to modify it ?

Thanks.
Reply
#2
Not Solved
Should work. Did it throw you any error message?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply
#3
Not Solved
Hi,

The above mentioned lines of code should work, but u need to create an object for that as mentioned below.

Code:
Set mypage = Browser(Dbrowser).Page(Dpage).Webbutton(Dwebbutton)
mypage.Click

Pls revert back still if u face any issue.

Thanks,
Benak
Reply
#4
Not Solved
Please ensure to include your code between [code] tags while asking or replying to questions. I have done this for you for this time.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Regular expression in descriptive programming testernc 1 16,576 12-08-2014, 06:38 PM
Last Post: anshika.agarwal

Forum Jump:


Users browsing this thread: 1 Guest(s)