Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Input Data without Repository
#1
Not Solved
Hi Guys,

I am having a problem trying to input the username and password into the demo webpage at newtours.demoaut.com. I want to do this without using an object repository but the following code doesn't work.

Code:
Browser("Title:=.*").Page("Title:=.*").WebEdit("name:=userName").Set "xxxx"
   Browser("Title:=.*").Page("Title:=.*").WebEdit("name:=password").Set "xxxx"
   Browser("Title:=.*").Page("Title:=.*").Image("name:=login").Click

Why doesn't the browser recognize the properties?

Thanks
Reply
#2
Not Solved
hi,
try with the following code and let me know


Code:
browser("CreationTime:=0").Page("title:=Welcome: Mercury Tours").WebEdit("name:=userName").Set "Hello"
browser("CreationTime:=0").Page("title:=Welcome: Mercury Tours").WebEdit("name:=password").Set "Hello"
Browser("CreationTime:=0").Page("title:=Welcome: Mercury Tours").Image("file name:=btn_signin.gif").Click
Reply
#3
Not Solved
It works just fine.
i could not see any issues here...


Code:
Browser("Title:=.*").Page("Title:=.*").WebEdit("name:=userName").Set "xxxx"
Browser("Title:=.*").Page("Title:=.*").WebEdit("name:=password").Set "xxxx"
Browser("Title:=.*").Page("Title:=.*").Image("name:=login").Click


If it does not work, are u getting any error message?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to input Japanese Character through UFT Alaguraja 0 908 07-01-2020, 11:32 AM
Last Post: Alaguraja
  How to get input from the user in QTP? shanthiK 10 18,582 08-07-2017, 11:34 PM
Last Post: zunebuggy
  On Saving Script in QTP 11 my Global Data Sheet data is removed M Adnan Iftikhar 0 2,177 06-02-2015, 09:19 PM
Last Post: M Adnan Iftikhar
  Importing data from Excel into Data table of QTP Chitti 1 4,905 11-01-2013, 05:54 PM
Last Post: Parke
  Problem in Input from keyboard:sendkeys Rachna 1 4,977 10-14-2013, 06:07 PM
Last Post: anil2u

Forum Jump:


Users browsing this thread: 1 Guest(s)