Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On click no Page Navigation
#1
Not Solved Exclamation 
[color=#FFD700]Hi, When I click on a link say "Search Relationships" by the code shown below page navigation to the page the link is pointing to doesn't happen.
Code:
Browser("name:=browser").Page("Page:=Page").WebTable("html id:=_ctl0_Search").WebElement("html tag:=TD","innertext:=Search Relationships).click

The source code of the page correspoding to the link is as shown below
Code:
<TABLE class=ContextMenu id=_ctl0_Search style="DISPLAY: none" cellSpacing=0 cellPadding=0><TBODY>
<TR class=ContextMenuItemHeader style="DISPLAY: none" commandname="Header">
<TD colSpan=2></TD></TR<TR class=ContextMenuItem onmouseover="this.className = 'ContextMenuItemSelected'" onclick="opener.PopupWindow.close ();opener.location.href = '/Genesis/Search/RelationshipSearch.aspx';opener.contextMenuClick (this);" onmouseout="this.className = 'ContextMenuItem'" commandname="RelationshipSearch">
<TD class=Image><IMG height=16 src="/Genesis/Images/Search.gif" width=16 align=absMiddle></TD>
<TD class=Text noWrap>Search Relationships</TD></TR>
</TBODY></TABLE>
Any help is highly appreciated.
The element to be clicked is in the last line of source code
Code:
<TD class=Text noWrap>Search Relationships</TD></TR>
Reply
#2
Not Solved
Hi,

Did you get any error message? probably in that page, there is a frame.........jus check it and include frame in your code
Reply
#3
Not Solved
No there is no frame and no error message.
Reply
#4
Not Solved
Ankur, Saket, and other techies please help!!!
Reply
#5
Not Solved
Hi Ravi,

As far as i know, you cannot put webelement as child of WebTable. Even if you add this webelement manually to OR, you will see that webtable is not its parent.

If you want to click any element in webtable, then you have to use childobjects method.

Regards,
Parminder
Reply
#6
Not Solved
Hi Pharminder,
Thanks for responding. I have tried using child objects as well.But that doesn't help.Any other way you can think of?
Regards,
Ravi
Reply
#7
Not Solved
try this:

Code:
Browser("name:=browser").Page("Page:=Page").WebElement("html tag:=TD","innertext:=Search Relationships).click

If it doesnt work then please provide Spy shot of Webelement and webtable
Reply
#8
Not Solved
    Pls see the screenshot
Reply
#9
Not Solved
Add the table in your repository and try the below line:

Code:
Browser().Page().WebTable("Search Relationships").ChildItem(<row no>,<column no>,"WebElement",0).Click

or

Code:
Browser().Page().WebTable("Search Relationships").ChildItem(<row no>,<column no>,"WebElement",1).Click

let me know if this doesn't work for you.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To pick up the particular mail in Post Login Gmail page and click on Checkbox akhandesh 0 2,847 12-02-2013, 01:35 PM
Last Post: akhandesh
  QTP identificatin issue with SAP CRM Navigation Bar mwase 4 6,165 06-18-2012, 03:40 PM
Last Post: mwase
Exclamation detecting page navigation from 1 script and then triggering another script... jitender 0 2,087 12-02-2011, 10:33 AM
Last Post: jitender

Forum Jump:


Users browsing this thread: 2 Guest(s)