Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Text being added to wrong IE
#1
Not Solved
I am trying to update a text field , but it fails on line 4 below. It seems to be looking at the wrong IE window.

Line 2 is selecting a text box to add information to from QTP executed copy of IE. I popup box appears. Line 3 takes about 20 seconds, then updates a text box in the QTP executed copy of IE rather than the IE popup text box. Line 4 fails as it is also not at the popup and therefore can't select the submit button.

How do I get QTP to select the correct IE to put the text message in.

Code:
'Add User, Date and Time in Description Field
Browser("Certificate Error: Navigation").Page("Page_13").Image("update_01-sel").FireEvent "onmouseover"
Browser("Certificate Error: Navigation").Page("Page_13").Image("update_01-sel").Click
Browser("Browser").Page("Page_9").WebEdit("desc").Set sDescriptionText
Browser("Browser").Page("Page_9").WebButton("Submit").Click

Reply


Messages In This Thread
Text being added to wrong IE - by MichaelS - 10-14-2011, 12:04 AM
RE: Text being added to wrong IE - by Ankesh - 10-14-2011, 10:31 AM
RE: Text being added to wrong IE - by MichaelS - 10-18-2011, 12:51 AM
RE: Text being added to wrong IE - by MichaelS - 10-18-2011, 08:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP identifies the Wrong Object while running? subramanianmsc2007 3 2,793 05-11-2012, 04:01 PM
Last Post: mrinal_nandi
  New browser/page for each new object added in OR ritugoyal 1 2,393 12-15-2009, 06:17 PM
Last Post: Ankur
  is there any setting to avoid "_2" being added to a object name, while recording blanchedsouza 4 3,410 06-18-2008, 03:12 AM
Last Post: niranjan

Forum Jump:


Users browsing this thread: 3 Guest(s)