Identify javascript elements using Ranorex
Posted: Mon Jul 14, 2014 11:12 pm
Hi ...
Test Environment:
Windows XP / Windows 7 / Windows 2008 Server
Internet Explorer 8
Flash Player 12.0.0.44
Ranorex 4.1.6
We have been working with Flex - but now I have to identify some elements in Javascipt. I have opened the element repository and used the Track feature to select the object on the webpage. The RanoreXPath is created with an image. The RanoreXPath is below. Ranorex can't seem to find it using the code below.
I'm a little concerned about the --> label[@innertext='Patent'] ??
Thanks,
Chris
Test Environment:
Windows XP / Windows 7 / Windows 2008 Server
Internet Explorer 8
Flash Player 12.0.0.44
Ranorex 4.1.6
We have been working with Flex - but now I have to identify some elements in Javascipt. I have opened the element repository and used the Track feature to select the object on the webpage. The RanoreXPath is created with an image. The RanoreXPath is below. Ranorex can't seem to find it using the code below.
I'm a little concerned about the --> label[@innertext='Patent'] ??
Code: Select all
/dom[@domain~'[a-z, A-Z]*.workbench.judicial.int.westgroup.com']//div[#'65868_judicialsummary.trialCourtOrderSummaryPage.section.widget.negHistoryViewerWindow']/div[3]/div[1]/span/div/div[3]/label[@innertext='Patent']
Report.Info("Test that the Patent Tab exists ");
if (SummaryRegressionRepository.Instance.JSA.History.PatentInfo.Exists())
{
Report.Info("Click on the Patent Tab ");
SummaryRegressionRepository.Instance.JSA.History.Patent.Click();
}
Chris