Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling Actions
#3
Solved: 12 Years, 10 Months, 2 Weeks ago
Hi,

I tried the method that you told me and it didn't work for me. Do you have any other method where I can integrate the IF statement in the actions.

I don't know how to introduce an IF statement in VB and I am hoping if you could give me an idea on how to do it. This is my script from Login Action:

Code:
Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").WebEdit("username").Set DataTable("username", dtGlobalSheet)
Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").WebEdit("password").SetSecure DataTable("pwd", dtGlobalSheet)
Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").WebButton("Login").Click
Browser("ExxonMobil Authentication").Page("Imperial Oil Limited").Sync

The Global Sheet has 2 usernames and passwords: UserA and UserB.

And this is my script for Print Action:

'This action only views the report

Code:
Browser("Imperial Oil Limited").Page("Imperial Oil Limited").Frame("_sweview").Link("Print").Click
Browser("Reports").Page("Reports").WebList("s_0_1_7_0").Select DataTable("Report_Name", dtLocalSheet)
Browser("Reports").Page("Reports").Link("Run Now").Click
Browser("Reports").Page("Page").Sync
wait(10)
Browser("Reports").Close
Browser("Imperial Oil Limited").Page("Imperial Oil Limited").Sync

Do you have any ideas on putting an IF statement? Please let me know. Thanks

Mahadevan Swamy
Reply


Messages In This Thread
Controlling Actions - by mahadevan.swamy - 10-21-2008, 03:43 AM
RE: Controlling Actions - by krishnas.tester - 10-21-2008, 12:13 PM
RE: Controlling Actions - by mahadevan.swamy - 10-21-2008, 09:58 PM
RE: Controlling Actions - by mahadevan.swamy - 10-21-2008, 11:27 PM
RE: Controlling Actions - by somisays - 10-22-2008, 02:59 AM
RE: Controlling Actions - by mahadevan.swamy - 10-22-2008, 08:31 PM
RE: Controlling Actions - by MR21135 - 11-07-2008, 04:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)