Using Flexgrid with Selenium

Posted by: mongus on 14 September 2017, 11:18 am EST

  • Posted 14 September 2017, 11:18 am EST

    We would like to use Selenium to test our Flexgrid but are having difficulty automating it.

    Is there a way to automate editing data in a cell? As a human I can click the grid twice which puts the cell into edit mode. I can then type to change the value.

    However, with Selenium sending two click events to the cell div has no effect. Likewise with sending key presses.

    Any ideas how this can be done?

    Cheers

  • Posted 14 September 2017, 11:18 am EST

    Hello Mongus,

    Did you try calling startEditing() method of FlexGrid to put the cell in edit mode ?

    Also, I found that this is a common issue faced by people on using Selenium for testing. Here are some links :

    http://stackoverflow.com/questions/21907007/selenium-webdriver-java-code-using-web-driver-for-double-click-a-record-in-a-gri

    http://stackoverflow.com/questions/29031816/screen-is-not-getting-in-edit-mode-with-selenium-ide

    https://vaadin.com/forum#!/thread/4516271

    Regards

  • Posted 4 January 2018, 12:57 am EST

    Handling flex grid in selenium is not a simple task, After some research, this task has been done successfully , Although selenium is providing SeleniumFlexAPI API by which you can perform actions in flex grid.

    These are the steps which we need to follow:

    you have to download selenium flex API .

    you will get a SeleniumFlexAPI.swc file here.

    a. you need to put this file in your flex application (In the repository or in your project libs folder).

    b. you need to add lib path in flex compiler like this and compile the code

    -include-libraries “libs\SeleniumFlexAPI.swc”

    Visit here to know more! https://goo.gl/Mkynqj

Need extra support?

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

Learn More

Forum Channels