adding an ID to the global search box?

adding an ID to the global search box?

mikedmiked Posts: 43Questions: 3Answers: 0
edited March 2012 in General
how can I assign an ID to the global search at the top of the datatable?

we use selenium for automated testing (as does the user in this post who has the same issue: http://www.datatables.net/forums/discussion/4354/duplicate-html-ids-on-search-box#Item_7) and having the ability to ID each testable entity on the screen is a huge benefit

Thanks

Replies

  • mikedmiked Posts: 43Questions: 3Answers: 0
    determined that an xpath value of

    //div[@id="your-table-name_filter"]/descendant::label/descendant::input

    will work to get to the input field as well, replace your-table-name with the name *you* assigned your table
This discussion has been closed.