inspirehep.bat package

Submodules

inspirehep.bat.EC module

Module for custom selenium ‘Expected Conditions’.

class inspirehep.bat.EC.GetText(locator)[source]

Bases: object

An Expectation that waits until an element has text.

Todo: Better filter out the WebDriverException s .

class inspirehep.bat.EC.TryClick(locator)[source]

Bases: object

An Expectation that tries to click an element.

Is very similar to EC.element_to_be_clickable, but actually works.

Todo

Better filter out the WebDriverException s .

inspirehep.bat.actions module

inspirehep.bat.actions.click(_id=None, xpath=None, link_text=None)[source]
inspirehep.bat.actions.get_text_of(_id=None, xpath=None, link_text=None)[source]
inspirehep.bat.actions.get_value_of(_id=None, xpath=None, link_text=None)[source]
inspirehep.bat.actions.select(value, _id=None, xpath=None, link_text=None)[source]
inspirehep.bat.actions.wait_for(_id=None, xpath=None, link_text=None)[source]
inspirehep.bat.actions.write(data, _id=None, xpath=None, link_text=None)[source]

inspirehep.bat.arsenic module

class inspirehep.bat.arsenic.Arsenic(*args)[source]

Bases: object

click_with_coordinates(element_id, x, y)[source]
hide_title_bar()[source]
show_title_bar()[source]
write_in_autocomplete_field(field_id, field_value)[source]
class inspirehep.bat.arsenic.ArsenicResponse(assert_has_no_errors_func=None, assert_has_errors_func=None)[source]

Bases: object

assert_has_errors()[source]
assert_has_no_errors()[source]

Module contents

INSPIRE BAT framework.