RE: Canoo- Webtest query- need help with < storeElementAttribute > XML property
"Milind A. Kamu" <[email protected]>
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Message-ID | <EED83EAFDDF3C1428AF9329E7E84992D556ED5AF@MPDAMBX02.corp.mphasis.com> |
HI Team, Request someone to please assit me with my query. Thank you in advance. regards Milind Kamu || PMP M P H A S I S, an HP Company | IT Services Tel: 988-678-3976 (Cell) ________________________________ From: Milind A. Kamu Sent: Tuesday, July 09, 2013 2:43 AM To: [email protected] Subject: Canoo- Webtest query- need help with < storeElementAttribute > XML property Hi Team, Currently i am planning to automate a web appliaction using Canoo-webtest. Following is teh scenario i would like to automate: 1) Step 1: Check for a specific link on the page 2) After finding the link, perform a "mouseOver" action on it 3) Capture certain properties like "link color", "text decoration" , font etc... 4) in order to perfomr step-3, i have used < storeElementAttribute > 5) When i see the attribute values using"Fire Bug", HTML file doesnt have these properties listed under it, instead it is listed in a separate CSS file, and the properties are visible under the FireBug tabs "Style, "Computed", "DOM" etc.. 6) I need help in understanding how to retrieve such properties which are loctaed inside teh CSS file. 7) Currently the HTML file has the below snippt of the link i am trying to refer to: <a data-pt-name="hd_personal_home" href="https://www.chase.com" class="categoryLink_0 chaseanalytics-track-link selected" data-category="personal"> Personal<span class="accessible-text"> home page (current section)</span></a> the current code looks like : <project default="test"> <target name="test"> <webtest name="check that WebTest is Google's top 'WebTest' result"> <config> <option name="JavaScriptEnabled" value="false"/> </config> <invoke url="https://www.chase.com"/<https://appgate.mphasis.com/uniquesigb2cc581718f8449a1847097c6f9fe3671b660fd24f5a7fe88ead2145cdba668e/uniquesig1/owa/UrlBlockedError.aspx>> <setInputField name="QueryText" value="mobile banking"/> <clickLink description="Click link: " htmlId="swatsearchid"/> <invoke url="https://www.chase.com"/<https://appgate.mphasis.com/uniquesigb2cc581718f8449a1847097c6f9fe3671b660fd24f5a7fe88ead2145cdba668e/uniquesig1/owa/UrlBlockedError.aspx>> <mouseOver description="Mouse Over Personal Link: " xpath="/html/body/div[3]/div[2]/section/div/header/div/nav/div/div/ul/li/a"/> <mouseOver description="Mouse Over Personal Link: " xpath="/html/body/div[3]/div[2]/section/div/header/div/nav/div/div/ul/li/a"/> <storeElementAttribute xpath="/html/body/div[3]/div[2]/section/div/header/div/nav/div/div/ul/li/a" attributeName="text-decoration" propertyName="colorFinal1"/> <verifyProperty name="colorFinal1" text="underline" /> </webtest> </target> </project> thanks in advance for all your help regards Milind Kamu || PMP M P H A S I S, an HP Company | IT Services Tel: 988-678-3976 (Cell) ________________________________ Information transmitted by this e-mail is proprietary to MphasiS, its associated companies and/ or its customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at [email protected] and delete this mail from your records.