Homec4science

testutils: enrich InvenioWebTestCase class

Description

testutils: enrich InvenioWebTestCase class

  • Enriches helper functions for web tests in order to be able to find elements also by id:
    • element_value_test(element_name="", element_id="")
    • choose_selectbox_option_by_label(selectbox_name="", selectbox_id="")
    • choose_selectbox_option_by_index(selectbox_name="", selectbox_id="")
    • choose_selectbox_option_by_value(selectbox_name="", selectbox_id="")
    • fill_textbox(textbox_name="", textbox_id="")
  • Enriches the helper function element_value_test() in order to be able to get the value of a given element that is not a textarea or a textbox.
  • Adds new helper function:
    • find_elements_by_class_name_with_timeout()
  • Amends web tests as needed because of this enrichment. (addresses #798)

Details

Committed
Tibor Simko <tibor.simko@cern.ch>Feb 2 2012, 15:58
Parents
R3600:89f7509cf300: WebSearch: use wildcard limit in web APIs only
Branches
Unknown
Tags
Unknown

Event Timeline

Tibor Simko <tibor.simko@cern.ch> committed R3600:7eada8f5d02a: testutils: enrich InvenioWebTestCase class (authored by Raquel Jimenez Encinar <raquel.jimenez.encinar@cern.ch>).Feb 2 2012, 15:58