I recently discovered a snippet of code that I thought was fit for purpose but it doesn't seem to work. I am trying to move a slider from the bottom to the very top. The code I am using is:
Code: Select all
public static void Scroll(RepoItemInfo repoInfoElement, string Directon){
if (repoInfoElement != null){
Ranorex.Unknown itemAdapter = repoInfoElement.CreateAdapter<Ranorex.Unknown>(false);
do {
switch(Directon)
{
case "up" :
Keyboard.Press("{PageUp}");
break;
case "down" :
Keyboard.Press("{Next}");
break;
}
} while (itemAdapter.Visible == false);
itemAdapter.Click();
}
}
I have attached a screenshot of the slider E.G. I want the Priority to be moved to the top https://drive.google.com/file/d/1e5igM5 ... share_link
https://drive.google.com/file/d/1e5igM5 ... share_link