Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
5 Save button QTP
#1
Not Solved Shy 
I have 5 save buttons in 5 tabs. The tabs are placed one after the other. My object repository have these added as 5 save buttons with name save 1, save 2, save 3 , save 4, save 5. All are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except
Code:
First button
Index 0 html id:=btnSaveTab1 outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab1"" value=""Save"" type=""button"">",

Second button
"html id:=btnSave "outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button"">",

Third button
"html id:=", outerhtml:=<input id=""btnSaveTab1"" class=""Button"" onclick=""document.getElementById('a1').click();"" name=""btnSaveTab

Fourth button
"html id:=btnSave outerhtml:=<input id=""btnSave"" class=""Button"" onclick=""document.getElementById('a2').click();"" value=""Save"" type=""button""

5th button
"html id:=", "outerhtml:=<input class=""Button"" onclick=""document.getElementById('a5').click();"" value=""Save"" type=""button"">",
Reply
#2
Not Solved
So you want to click on the save button which is currently displaying in the page, right?
if the answer is yes, then you can check for "x" & "y" values and if they are >0 then click on the button after highlighting.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How do I save name and email address in QTP ? Shiv Y 1 2,503 12-19-2013, 07:24 AM
Last Post: basanth27
  QTP 11.0 Doesn't allow to save excel extracted from BO report. Hema Ganesh.M 1 3,239 12-09-2013, 07:32 AM
Last Post: basanth27
  Auto save in QTP kalaivanan123 0 2,825 11-12-2013, 12:58 PM
Last Post: kalaivanan123
  QTP not clicking on Yes button in the IE pop up dialog adityasrinivasb 2 9,632 09-29-2013, 11:01 PM
Last Post: prashantrawat101@gmail.com
  Perform some functions whenever QTP Stop button is pressed smartkarthi 2 3,226 08-22-2013, 11:43 AM
Last Post: smartkarthi

Forum Jump:


Users browsing this thread: 1 Guest(s)