I wonder if anyone can help me with this issue I experience.
I have a website developed using the Keenthemes template (http://www.keenthemes.com/preview/index.php?)
In one of the pages there are a few tabs. By default on page load the first tab is the one that is active.
When automating I wish to check which tab is currently selected and if it is the one I want then do nothing and carry on.... otherwise I wish to click the tab to select it...then carry on.
So if the summary tab is selected and I wish to get to the features tab I simply check:
Code: Select all
if RxPathToFeaturesTab.Class != "active")
{
RxPathToFeaturesTab.Click();
}
However if the condition is met and the tab is to be clicked Ranorex Scrolls up at the point of clicking so much so that much of the tab is hidden underneath the black header bar and can't be clicked. There is no need to scroll as the tab is clearly in view already?!?!?
Currently I am working round this by using:
Code: Select all
.Click(Location.LowerCenter);
I have tried
Code: Select all
EnsureVisible()
Code: Select all
UseEnsurevisable = true
Code: Select all
Focus()
Code: Select all
.PerformClick()
Can anyone tell me why this scrolling happens and how to get round it as I suspect this will happen in other areas of the Interface.
Thanks in Advance.