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:
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
Do you have any ideas on putting an IF statement? Please let me know. Thanks
Mahadevan Swamy
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").SyncThe 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").SyncDo you have any ideas on putting an IF statement? Please let me know. Thanks
Mahadevan Swamy

