Hi there,
I have a coded step that locates a sub-menu item and clicks on it to open a particular page.
Early in my test, this step runs and works fine.
Later in the test I want to go to the same page, and I made a copy of the same step. However, the step no longer works the second time it runs - and I can see the mouse shoot over to the corner of the screen for some reason.
Here is the code inside the step:
I have tried doing things like refreshing the dom tree, some waits, and even refreshing the whole page and navigating back to where I need to be, but nothing seems to help. Any suggestions on what I can try? Thanks!
I have a coded step that locates a sub-menu item and clicks on it to open a particular page.
Early in my test, this step runs and works fine.
Later in the test I want to go to the same page, and I made a copy of the same step. However, the step no longer works the second time it runs - and I can see the mouse shoot over to the corner of the screen for some reason.
Here is the code inside the step:
HtmlControl ulList = Pages.EVCloudAdministration.AccountsMenuUL;
HtmlListItem accMenuList = uList.Find.ByExpression<HtmlListItem>(
"tagname=Li"
,
"innertext=New Archive"
);
accMenuList.MouseClick();
I have tried doing things like refreshing the dom tree, some waits, and even refreshing the whole page and navigating back to where I need to be, but nothing seems to help. Any suggestions on what I can try? Thanks!