<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: QTP: Get Link&#8217;s Mouse Over (Hover) Color</title>
	<atom:link href="http://relevantcodes.com/qtp-get-links-mouseover-color/feed/" rel="self" type="application/rss+xml" />
	<link>http://relevantcodes.com/qtp-get-links-mouseover-color/</link>
	<description>A Resource for Test Automation Development</description>
	<lastBuildDate>Fri, 18 May 2012 07:21:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: SAM</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-60978</link>
		<dc:creator>SAM</dc:creator>
		<pubDate>Thu, 17 May 2012 12:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-60978</guid>
		<description>Hi Anshoo,

First ...Thanks for sharing the techniques of hovering and replayType details ..

@ Ankit Query :- The script may NOT be hovering and then selecting sublink and click on it if there are multiple links in that webpage with same names.
So when you use index to click the desired link it does NOT require to hover the mouse on the parent LINK.

So I think QTP cannot identify the sublinks drop down list which gets enabled only when Mouse is hovered over Parent Link. Please let me know if there is any workaround for this. So it does NOT treat the items in this list as Listitems but considers as independant links

Thanks,
SAM</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,</p>
<p>First &#8230;Thanks for sharing the techniques of hovering and replayType details ..</p>
<p>@ Ankit Query :- The script may NOT be hovering and then selecting sublink and click on it if there are multiple links in that webpage with same names.<br />
So when you use index to click the desired link it does NOT require to hover the mouse on the parent LINK.</p>
<p>So I think QTP cannot identify the sublinks drop down list which gets enabled only when Mouse is hovered over Parent Link. Please let me know if there is any workaround for this. So it does NOT treat the items in this list as Listitems but considers as independant links</p>
<p>Thanks,<br />
SAM</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-57548</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Thu, 15 Mar 2012 13:29:17 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-57548</guid>
		<description>Sophia, sorry, never had the chance to do this. Do you have a demo app that I can test this on?</description>
		<content:encoded><![CDATA[<p>Sophia, sorry, never had the chance to do this. Do you have a demo app that I can test this on?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sophia</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-56589</link>
		<dc:creator>Sophia</dc:creator>
		<pubDate>Tue, 28 Feb 2012 06:14:36 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-56589</guid>
		<description>Hello! i found this post relevant to my problem. Actually I want to grab the tool tip text of a JavaButton when mouse is hovered over the button, in a java application. Can you guide me how to do that? I have tried following things but nothing works;
. JavaWindow(&quot;Main Window&quot;).JavaButton(text).FireEvent micMouseEnter, 0,0  // I am not sure of the arguments here, neither could I find the details over web. 
. ToolTip1 = JavaWindow(&quot;Main Window&quot;).JavaButton(text).GetROProperty(&quot;alt&quot;)	//Does not work either
. JavaWindow(&quot;Main Window&quot;).JavaButton(text).FireEvent &quot;onmouseover&quot; // this one does not work either also tell me where is this event defined? I could not find it in documentation.

I also tried adding the a property and its value to the object in object repository but in that case QTP does not identify the object as it is changed.</description>
		<content:encoded><![CDATA[<p>Hello! i found this post relevant to my problem. Actually I want to grab the tool tip text of a JavaButton when mouse is hovered over the button, in a java application. Can you guide me how to do that? I have tried following things but nothing works;<br />
. JavaWindow(&#8220;Main Window&#8221;).JavaButton(text).FireEvent micMouseEnter, 0,0  // I am not sure of the arguments here, neither could I find the details over web.<br />
. ToolTip1 = JavaWindow(&#8220;Main Window&#8221;).JavaButton(text).GetROProperty(&#8220;alt&#8221;)	//Does not work either<br />
. JavaWindow(&#8220;Main Window&#8221;).JavaButton(text).FireEvent &#8220;onmouseover&#8221; // this one does not work either also tell me where is this event defined? I could not find it in documentation.</p>
<p>I also tried adding the a property and its value to the object in object repository but in that case QTP does not identify the object as it is changed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-55740</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Mon, 13 Feb 2012 16:10:24 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-55740</guid>
		<description>Abhilash, you can do so by using a conditional (If..Then..Else) statement.

&lt;pre&gt;
If color = &quot;orange&quot; Then
    Reporter.ReportEvent micFail, &quot;Orange&quot;, &quot;Invalid color&quot;
Else
    Reporter.ReportEvent micPass, &quot;Not Orange&quot;, &quot;Valid color&quot;
End If
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Abhilash, you can do so by using a conditional (If..Then..Else) statement.</p>
<pre>
If color = "orange" Then
    Reporter.ReportEvent micFail, "Orange", "Invalid color"
Else
    Reporter.ReportEvent micPass, "Not Orange", "Valid color"
End If
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mini</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-55708</link>
		<dc:creator>Mini</dc:creator>
		<pubDate>Mon, 13 Feb 2012 03:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-55708</guid>
		<description>Can anyone tell me how to automate hover behaviour in a web page using QTP?</description>
		<content:encoded><![CDATA[<p>Can anyone tell me how to automate hover behaviour in a web page using QTP?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhilash</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-54677</link>
		<dc:creator>Abhilash</dc:creator>
		<pubDate>Tue, 24 Jan 2012 07:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-54677</guid>
		<description>Hi,
Anshoo Arora

can u tell me how i can use the data i receive from mouse event to be validated instead of printing it???

example if  i want Reporter.ReportEvent to fail if color is black and pass if color returned is orange....

Thanks 
Abhilash</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Anshoo Arora</p>
<p>can u tell me how i can use the data i receive from mouse event to be validated instead of printing it???</p>
<p>example if  i want Reporter.ReportEvent to fail if color is black and pass if color returned is orange&#8230;.</p>
<p>Thanks<br />
Abhilash</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-53006</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Tue, 27 Dec 2011 11:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-53006</guid>
		<description>Ankit, the way I generally do this is not visible to the user but the link is clicked. If you want to make it visible, then I guess you can consider changing the replaytype:

&lt;pre&gt;
Setting.WebPackage(&quot;ReplayType&quot;) = 2

Browser(&quot;title:=Relevant Codes.*&quot;).Link(&quot;innertext:=Articles&quot;).FireEvent &quot;onmouseover&quot;
Browser(&quot;title:=Relevant Codes.*&quot;).Link(&quot;innertext:=VBScript&quot;, &quot;index:=0&quot;).Click

Setting.WebPackage(&quot;ReplayType&quot;) = 1
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Ankit, the way I generally do this is not visible to the user but the link is clicked. If you want to make it visible, then I guess you can consider changing the replaytype:</p>
<pre>
Setting.WebPackage("ReplayType") = 2

Browser("title:=Relevant Codes.*").Link("innertext:=Articles").FireEvent "onmouseover"
Browser("title:=Relevant Codes.*").Link("innertext:=VBScript", "index:=0").Click

Setting.WebPackage("ReplayType") = 1
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: ankit</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-52122</link>
		<dc:creator>ankit</dc:creator>
		<pubDate>Mon, 12 Dec 2011 11:38:32 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-52122</guid>
		<description>Hi Anshoo,
How to click on a sublink which becomes visible when mouse is put over the parent link.
Like in your website first fire a onmouseover event for Articles link(this part I am able to do) then select and click on any of the sublink.

Thanks
Ankit</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,<br />
How to click on a sublink which becomes visible when mouse is put over the parent link.<br />
Like in your website first fire a onmouseover event for Articles link(this part I am able to do) then select and click on any of the sublink.</p>
<p>Thanks<br />
Ankit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ankit</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-51301</link>
		<dc:creator>ankit</dc:creator>
		<pubDate>Mon, 05 Dec 2011 14:37:58 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-51301</guid>
		<description>Hi Anshoo,
How to click on a sublink which becomes visible when mouse is put over the parent link.
Like in your portal first fire a onmouseover event for Articles link(this part I am able to do) then select and click on any of the sublink.

Thanks
Ankit</description>
		<content:encoded><![CDATA[<p>Hi Anshoo,<br />
How to click on a sublink which becomes visible when mouse is put over the parent link.<br />
Like in your portal first fire a onmouseover event for Articles link(this part I am able to do) then select and click on any of the sublink.</p>
<p>Thanks<br />
Ankit</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anshoo Arora</title>
		<link>http://relevantcodes.com/qtp-get-links-mouseover-color/#comment-32735</link>
		<dc:creator>Anshoo Arora</dc:creator>
		<pubDate>Wed, 17 Aug 2011 01:45:59 +0000</pubDate>
		<guid isPermaLink="false">http://relevantcodes.com/?p=1889#comment-32735</guid>
		<description>Maruti, try this:

&lt;pre&gt;
Print Browser(&quot;&quot;).WebTable(&quot;&quot;).Object.rows(0).cells(0).currentStyle.backgroundColor
&#039;or
Print Browser(&quot;&quot;).WebTable(&quot;&quot;).Object.rows(0).cells(0).currentStyle.color
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Maruti, try this:</p>
<pre>
Print Browser("").WebTable("").Object.rows(0).cells(0).currentStyle.backgroundColor
'or
Print Browser("").WebTable("").Object.rows(0).cells(0).currentStyle.color
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 11/14 queries in 0.003 seconds using disk: basic
Object Caching 379/379 objects using disk: basic
Content Delivery Network via N/A

Served from: relevantcodes.com @ 2012-05-19 11:28:52 -->
