Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


In our application (Web based application)we will get a pdf
file and we have check a particular text in that pdf. Can
any one tell how to check text in a pdf file.

In the same pdf file it generating some links and I have to
click that links. QTP unable recognizing that links, even
id did record and playback qtp does not generating any
script.

Can any one help me….?

Answers were Sorted based on User's Feedback



In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / ravi

In virtual object we cannt get the text what we want to
check. Plz tell how to check the text.

Is This Answer Correct ?    2 Yes 0 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / nanda

Hi...we should have add in for it. but with add in also we
do it..by copieng pdf test to a text file.

for this...
string1 = "nanda"
len_data = len(string1)
i=0
file_path = "C:\Documents and Settings\Madhu
Sudhan\Desktop\pdftotext.text"
Set clipboard = createobject("mercury.clipboard")

Set fso = createobject("scripting.filesystemobject")
Set notepad = fso.createtextfile(file_path,8)

'*********Start recording click on Edit menu--select all,
'click on Edit menu--copy, click on pdf file to get deselect
'the text...************
Window("Adobe Reader").Activate
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 8>"
Window("Adobe Reader").WinMenu("Menu").Select "Edit;<Item 4>"
Window("Adobe Reader").Activate
get_text = clipboard.gettext
notepad.write get_text
notepad.close

set notepad = fso.opentextfile(file_path,1)

do while notepad.AtEndofStream <> true

get_data = notepad.readline

search_data = instr(get_data, "nanda")
capture_data = mid(get_data,search_data,len_data))
if capture_data = string1 then

i = i+1
else
end if

loop

msgbox "the text is found in "& i" rows"

for any queries...
nanda.dreddy@gmail.com

Is This Answer Correct ?    2 Yes 1 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / pankaj

better we create instances for
learnquicktest.manipulatepdf
this can help to do operation on pdf files

Is This Answer Correct ?    0 Yes 0 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / stephen

Do you have a full copy of Adobe Acrobat installed?

Is This Answer Correct ?    0 Yes 2 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / sunny

haha......... it's too funny answers.........

Sorry 4 that
actually u should buy the adobe ad-in component........

correct me if I am wrong.

Is This Answer Correct ?    0 Yes 3 No

In our application (Web based application)we will get a pdf file and we have check a particular te..

Answer / swathi

I think u know it before hand.
Qtp cant recognize some objects . So we have to make that
object to be recognized by the qtp using virtual object
wizard.

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More QTP Interview Questions

HI. Plz Clarifie my doubt,having 2+yrs experience in Testing , But My accedamics(Xth,INTER) are Less than 60%, But B.Tech 72%. It creats any problem , When i change to any MNC. plz tell me......... lot of friends told it's a problem, Some people says NO problem, What .............

3 Answers  


how to test background color and dynamic images during runtime

4 Answers   CTS,


hi everyone today is the first time i saw this website,and hi iam siraj,iam very impressed by seeing evryones response towards questions,iam a newcomer and i have got tryining in testing can anyone please send me some projects relaited to testing.i know it is very confidential but still if u send it will a great help. my mail id venku_krs@yahoo.co.in

1 Answers  


write script for , launching fr window,login and create 5 elements array and store 5 order numbers inthat array? and open order by using order no.s in array and find out maximum tickets booked by which order?

1 Answers   TCS,


pls tell me how will you write the vb script in QTP for DataDriven test from Excel sheet for multiple userid and password explain with example

6 Answers   Ordain Solutions,


How do u insert an object during runtime in qtp?

2 Answers  


How to handle Dynamically changing Objects in QTP?

4 Answers  


what is Compile Module in QTP? what exactly it contains Functions or Actions?

2 Answers   GE,


How to Creating an Output Value using QTP?

1 Answers  


when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

1 Answers  


How to match two doc files using qtp requirment is:- each and every single word of a doc file should be matched with the another doc file. can someone send me the code.

1 Answers  


plz can any one send me what is Automation Testing Frameworks.. Thanks in advance

1 Answers  


Categories