microsoft / WinAppDriver

Windows Application Driver
MIT License
3.69k stars 1.4k forks source link

refresh window contents #1122

Open cgetty12 opened 4 years ago

cgetty12 commented 4 years ago

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.

anunay1 commented 4 years ago

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

cgetty12 commented 4 years ago

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;

splekhan commented 4 years ago

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.

cgetty12 commented 4 years ago

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.