If I look at an element in Ranorex Spy, it apprears as an item. I can select "PerformClick" and it clicks as expected. See attachment: But if I try to click on this element via the script, it doesn't. It just clicks in the top left corner of the browser.
This element is a line within a bar graph. It opens up another graph, basically drilling down through the detailed data:
This works fine in IE, but Safari, Chrome and FireFox seems to be causing issues.
I could force a mouse position on the screen, but that is flaky to say the least. I would prefer to be able to identify the first line and select that as I can in IE.
IE, as mentioned works. I have the IE element set as this: Any thoughts as I would prefer to have this test automated rather than having to manually do this when the
time comes.
I have, for now added a little bit of code to confirm I can click the item in the other browsers and it works as expected:
Code: Select all
if (BrowserName == "IE") {
Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'repo.RapidPortalLogOn.KPISmallChart7GraphId0PlotsetPlot0'", null);
repo.RapidPortalLogOn.KPISmallChart7GraphId0PlotsetPlot0.Click(Location.CenterLeft);
} else {
Report.Log(ReportLevel.Info, "Mouse", "Mouse Left Click item 'repo.RapidPortalLogOn.NonIEMiPerformanceGraphItem1'", null);
repo.RapidPortalLogOn.NonIEMiPerformanceGraphItem1.Click("680;284");
}
Thanks in advance.
James