1

Using coded-ui-tests to automate a screen which is using wijmo grid with scroll.

The problem is not able to record all the cells, as the cells which appear after scroll does not render in DOM, this is evident from Inspect element feature of browser.

How can I catch the cells?

Edited: The issue here is that only the cells which are visible is getting rendered in dom as we can see, while the part of the grid which is on right i.e. which will appear after scrolling is not getting rendered.

  • The red line shows only the visible cells are rendered not the ones which are towards right of the grid.
  • The yellow highlighted div shows the start of new row (which should not be in the actual case until all the cells of above row are not rendered).

enter image description here

11
  • Can you give a sample of the html for the wijmo?
    – lloyd
    Apr 15, 2015 at 0:31
  • Possibly SendKeys {UP} {DOWN} {LEFT} {RIGHT}
    – lloyd
    Apr 15, 2015 at 5:40
  • ok fine, I can do that but then it will capture every up,down,left,right separately, while i need to capture whole row at one go.
    – rp4361
    Apr 15, 2015 at 5:53
  • I'm assuming you've already maximized the browser window?
    – lloyd
    Apr 16, 2015 at 1:41
  • no its 100%, is there any property of wijmo which i can make use of so that it starts showing whole row in dom rather than only the visible part.
    – rp4361
    Apr 16, 2015 at 6:43

1 Answer 1

1

For record, Wijmo Flexgrid has inbuilt virtualizatio and therefore, only visible cells are rendered in the DOM. This is the design behavior of the control in order to provide good performance. Else, if there are 10000 records in the grid and each is rendered then it would take a lot of time. You can display all the records by not setting the height of FlexGrid.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.