How to access flexgrid cells both header and grid for selenium testing

Posted by: pritam1995kumar on 9 May 2019, 6:13 pm EST

  • Posted 9 May 2019, 6:13 pm EST

    we are getting a hard time locating all the headers and cells in the flex grid as lot of class and identifier are equal. As there is no unique identifier for the cells and other elements for the grid.

    :note: we tried adding id’s or class in the item formatter from code , but it’s decreasing the performance badly.

    Kindly provide some suggestion .

  • Posted 12 May 2019, 6:28 pm EST

    To access various headers and cells, you could use the getCellElement method of GridPanel class. Please refer to the sample below:

    https://stackblitz.com/edit/angular-kzmlhr

    API Reference:

    getCellElement method:

    https://www.grapecity.com/wijmo/api/classes/wijmo_grid.gridpanel.html#getcellelement

  • Posted 13 May 2019, 8:47 pm EST

    Hi Abhishek,

    Thanks for your reply.

    But We are using java selenium web driver … can you provide some example or demo for elenium code … how to approach it …

  • Posted 14 May 2019, 9:51 pm EST

    Hi,

    I have queried the Dev Team to look into this, the Internal tracking ID for this request is 379630. Will update you once we have further information.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels