Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Controlling Actions
#4
Solved: 12 Years, 10 Months, 2 Weeks ago
I have tried this method but it doesnt work:

Login Script:

Code:
Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").Sync
Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").WebEdit("username").Set DataTable("username", dtGlobalSheet)
user = Browser("ExxonMobil Authentication").Page("ExxonMobil Authentication").WebEdit("username").GetROProperty(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


Print Script:

'This action only views the report

Code:
If user = "UserB" Then
msgbox "This action cannot be executed"

Else
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
End if

Can anybody tell me how to make this work? Thanks
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)