Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,
please let me know the syntax of descriptive programing is correct for the below mentimoed script.
I am retrieveing the EMI using Descriptive Programing.

Code:
systemutil.Run"iexplore.exe","http://www.homeloanshub.com/mortgage-calculator/"
Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("principal").set"1000000"
Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("interest").set"2"
Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("tenure").set"5"
Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webbutton("Calculate").Click

when i run the above script the error displays as:

"The test run cannot continue due to a syntax error.

Expected ')'

Line (1):
Code:
"Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("principal").set"1000000"".


please can any one assist on this.

Regards,
Shwetha
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Hi,

Try this

Code:
Browser("Mortgage Calculator").Page("Mortgage Calculator").WebEdit("principal").Set "1000000"
Browser("Mortgage Calculator").Page("Mortgage Calculator").WebEdit("interest").Set "5"
Browser("Mortgage Calculator").Page("Mortgage Calculator").WebEdit("tenure").Set "2"
Browser("Mortgage Calculator").Page("Mortgage Calculator").WebButton("Calculate").Click

Cheers,
Matt
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
Thats how it works:


systemutil.Run"iexplore.exe","http://www.homeloanshub.com/mortgage-calculator/"

Code:
Browser ("name:=Mortgage Calculator").page("title:=Mortgage Calculator").webedit("name:=principal").set "1000000"
Browser ("name:=Mortgage Calculator").page("title:=Mortgage Calculator").webedit("name:=interest").set "2"
Browser ("name:=Mortgage Calculator").page("title:=Mortgage Calculator").webedit("name:=tenure").set "5"
Browser ("name:=Mortgage Calculator").page("title:=Mortgage Calculator").webbutton("name:=Calculate").Click

Regards

Heiko
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)