Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error
02-01-2012, 01:39 PM
Post: #1
Error

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.

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): "Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("principal").set"1000000"".

please can any one assist on this.

Regards,
Shwetha
Find all posts by this user
Quote this message in a reply
02-01-2012, 04:57 PM
Post: #2
RE: Error
(02-01-2012 01:39 PM)shwetha_m Wrote:  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.

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): "Browser (name:="Mortgage Calculator").page(title:="Mortgage Calculator").webedit("principal").set"1000000"".

please can any one assist on this.

Regards,
Shwetha


Hi,

Try this

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
Find all posts by this user
Quote this message in a reply
02-01-2012, 08:03 PM
Post: #3
RE: Error
Thats how it works:


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

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)