EasyUI Forum
May 14, 2024, 08:25:00 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: EasyUI generated id for divs and spans  (Read 4074 times)
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« on: December 14, 2018, 09:31:00 AM »

We use selenium framework (https://www.seleniumhq.org/) for testing our EasyUI based frontend pages.

Our selenium based tests are run periodically under Firefox and IE browsers. These tests were implemented and tested when we were using the EasyUI version 1.5.4.1.

Recently we upgraded to version 1.6.10 and since then our tests aren't running anymore. To get the tests up and running, we had to adjust the way we locate easyui components.

In general easyui creates many additional divs and spans for each html component with a self generated id. The problem is, these generated ids are random and have no connection with the original id. This makes difficult to programmatically locate a particular html component in order to perform a click or select action on it.

Please see the attached file to get an idea of what we mean.

Would it be possible in upcoming versions of easyui to include the id of main html component as prefix in all ids of connected divs and spans?

Thanks for looking into this and for a feedback.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: December 14, 2018, 07:02:57 PM »

Please try to update to version 1.6.11.
Logged
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« Reply #2 on: January 07, 2019, 04:13:57 AM »

Sorry for responding so late. I was on a vacation...

Thanks stworthy for a quick update on this topic. I have tested it with the latest version 1.7.1.

The generated ids now include id of main html component BUT it is only available for comboboxes. We have same issue with textboxes, menus, tree, datagrids and edatagrids (please see the attached images).

Will it possible to get the same done for all EasyUI components?

Thanks very much.
Logged
gordis gmbh
Full Member
***
Posts: 103


View Profile Email
« Reply #3 on: March 04, 2019, 05:48:21 AM »

Please try to update to version 1.6.11.
This change of 1.6.11 is not included in 1.7.4. The id of main html component is NOT existing as prefix in id of spans / divs that are generated by easyui. Please include it as we have adjusted all our tests based on 1.6.11.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #4 on: March 05, 2019, 07:40:22 PM »

Please try to update to a newer version.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!