WinAppDriver icon indicating copy to clipboard operation
WinAppDriver copied to clipboard

refresh window contents

Open cgetty12 opened this issue 6 years ago • 4 comments

I am checking the value of an AppiumWebElement on a form in a winforms app. The first time I check the value, it returns the expected value. Then the value changes. Then when I check the value again, it returns the initial value. Is there some sort of cache I need to clear or a setting to turn on that will allow this value to show the updated value.

I am seeing this in two places. Both in a datagrid.

cgetty12 avatar Apr 07 '20 20:04 cgetty12

how are you trying to find the element after it is changed can you share the code.

anunay1 avatar Apr 08 '20 10:04 anunay1

uiFamilyGrid = form.FindElementByAccessibilityId(uiLayoutControl, "familyMembersEGC"); // find grid AppiumWebElement footer = uiFamilyGrid.FindElementByName("Footer Panel"); // find footer panel AppiumWebElement cell = footer..FindElementByName("Balance");// get cell string value = cell.Text;

cgetty12 avatar Apr 08 '20 12:04 cgetty12

Any updates on this? My app doesn't provide new elements when I use paginations. Even in "Inspect.exe" I have to use refresh in order to see new page elements.

splekhan avatar Jun 09 '20 10:06 splekhan

Unfortunately I don't have any updates. I have tried numerous methods to try to refresh the DOM. Nothing is working and most are not supported for WinForms.

cgetty12 avatar Jun 10 '20 18:06 cgetty12