Module ImportFrom alias alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Call NameLoad Str Str Assign NameStore Call NameLoad Str Str ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Index Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str Index Str handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Index Num Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num Assign NameStore SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults Num body Expr Str If Call NameLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Num body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults Num body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad Assign NameStore Str Expr Call AttributeLoad Call AttributeLoad NameLoad attr Str attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad Assert CompareEq Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr attr Num decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Num body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Num body Raise Call NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Num body Raise Call NameLoad Str Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr BinOpAdd Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Num body Raise Call NameLoad Str Assert CompareEq Call AttributeLoad AttributeLoad NameLoad attr attr Num Assert CompareEq AttributeLoad SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num attr BinOpAdd NameLoad Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str TupleLoad Num Num Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Str Expr Call AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Assign NameStore Str If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad Num body Raise Call NameLoad Str If UnaryOpNot Call AttributeLoad NameLoad attr Str Num body Raise Call NameLoad Str Expr Call NameLoad NameLoad Str Expr Call NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad With Call AttributeLoad NameLoad attr Num NameStore body Expr Call NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad Expr Call NameLoad NameLoad Str Expr Call NameLoad NameLoad Call AttributeLoad Str attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad Str Expr Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str decorator_list AttributeLoad AttributeLoad NameLoad attr attr
N/A __future__ unicode_literals absolute_import N/A os N/A time N/A pytest N/A tempfile PIL Image splinter.element_list ElementList selenium.webdriver.common.keys Keys django.db.models get_model fancypages.test.fixtures admin_user fancypages.test TEMP_MEDIA_ROOT factories fancypages.test.testcases SplinterTestCase N/A TextBlock N/A get_model fancypages TextBlock N/A ImageAsset N/A get_model assets ImageAsset TestTheEditorPanel N/A SplinterTestCase N/A N/A is_staff True N/A is_logged_in True N/A home_page_url / test_can_be_opened_by_clicking_the_handle N/A N/A self N/A N/A N/A N/A N/A self goto N/A self home_page_url N/A body_tag N/A N/A N/A N/A self browser find_by_css body first N/A N/A N/A self assertTrue N/A N/A body_tag has_class editor-hidden N/A N/A N/A self find_and_click_by_css N/A self browser #editor-handle N/A N/A N/A self assertFalse N/A N/A body_tag has_class editor-hidden N/A N/A N/A value N/A N/A N/A N/A N/A self browser driver get_cookie fpEditorOpened N/A value N/A N/A N/A N/A KeyError TypeError N/A N/A N/A N/A self fail could not find cookie 'fpEditorOpened' but expected N/A N/A N/A self assertEqual value true N/A test_can_be_closed_by_clicking_the_x N/A N/A self N/A N/A N/A N/A N/A self assertEqual N/A N/A N/A N/A self browser driver get_cookie fpEditorOpened None N/A N/A N/A self goto N/A self home_page_url N/A N/A N/A self find_and_click_by_css N/A self browser #editor-handle N/A body_tag N/A N/A N/A N/A self browser find_by_css body first N/A N/A N/A self assertFalse N/A N/A body_tag has_class editor-hidden N/A N/A N/A self find_and_click_by_css N/A self browser #editor-close N/A body_tag N/A N/A N/A N/A self browser find_by_css body first N/A N/A N/A self assertTrue N/A N/A body_tag has_class editor-hidden N/A N/A N/A value N/A N/A N/A N/A N/A self browser driver get_cookie fpEditorOpened N/A value N/A N/A N/A N/A KeyError TypeError N/A N/A N/A N/A self fail could not find cookie 'fpEditorOpened' but expected N/A N/A N/A self assertEqual value false N/A test_remains_opened_when_reloading_the_page N/A N/A self N/A N/A N/A N/A N/A self goto N/A self home_page_url N/A N/A N/A self find_and_click_by_css N/A self browser #editor-handle N/A body_tag N/A N/A N/A N/A self browser find_by_css body first N/A N/A N/A self assertFalse N/A N/A body_tag has_class editor-hidden N/A N/A N/A self goto N/A self home_page_url N/A body_tag N/A N/A N/A N/A self browser find_by_css body first N/A N/A N/A self assertFalse N/A N/A body_tag has_class editor-hidden N/A N/A TestTabBlock N/A SplinterTestCase N/A N/A is_staff True N/A is_logged_in True N/A home_page_url / setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestTabBlock self setUp N/A N/A self page N/A N/A factories FancyPageFactory N/A test_tabs_can_be_added_and_removed N/A N/A self N/A N/A N/A N/A self block N/A N/A factories TabBlockFactory container N/A N/A N/A N/A N/A self page containers all N/A 0 N/A N/A N/A self goto N/A N/A N/A self page get_absolute_url N/A N/A N/A self find_and_click_by_css N/A self browser #editor-handle N/A N/A N/A self assertEqual N/A len N/A N/A N/A self browser find_by_css .tab-pane 1 N/A N/A N/A self find_and_click_by_css N/A self browser .fp-add-tab N/A N/A N/A self wait_for_editor_reload N/A N/A N/A self assertEqual N/A len N/A N/A N/A self browser find_by_css .tab-pane 2 N/A second_tab N/A N/A N/A N/A self browser find_by_css .fp-delete-tab N/A 0 N/A second_tab_id N/A second_tab N/A data-block-id N/A N/A N/A second_tab click N/A N/A N/A self wait_for_editor_reload N/A N/A N/A self assertEqual N/A len N/A N/A N/A self browser find_by_css .tab-pane 1 N/A tab_removed N/A N/A N/A self browser is_element_not_present_by_css N/A N/A [data-block-id='{}'] format second_tab_id N/A N/A tab_removed N/A N/A N/A N/A self fail deleting the second tab failed N/A N/A ensure_element N/A N/A element_or_list index N/A 0 N/A N/A 
    Selects either the element with *index* from the list of elements given
    in *element_or_list* or returns the single element if it is not a list.
    This make it possible to handle an element and a list of elements where
    only a single element is required.

    :param element: ``Element`` instance or ``ElementList``.
    :parem int index: Index of element to be returned if a list.
        (Default: 0)
    :rtype: Element
     N/A N/A isinstance element_or_list ElementList N/A N/A N/A element_or_list N/A index N/A element_or_list N/A find_and_click_by_css N/A N/A browser selector wait_time N/A 3 N/A N/A N/A N/A browser is_element_present_by_css selector wait_time N/A elem N/A ensure_element N/A N/A browser find_by_css selector N/A N/A N/A elem click N/A open_editor_panel N/A N/A browser N/A N/A N/A N/A find_and_click_by_css browser #editor-handle N/A N/A N/A N/A browser is_element_present_by_css .edit-button 2 N/A N/A N/A AssertionError Could not find edit button for block N/A wait_for_editor_reload N/A N/A wait_for N/A 3 N/A N/A N/A N/A time sleep wait_for N/A test_text_block_can_be_added_to_a_container N/A N/A admin_user browser live_server N/A N/A N/A fancypage N/A N/A factories FancyPageFactory N/A title Sample Title N/A text This is an amazing piece of text N/A N/A N/A factories TitleTextBlockFactory container N/A N/A N/A N/A fancypage containers all N/A 0 title title text text N/A N/A N/A browser visit N/A N/A live_server url N/A N/A fancypage get_absolute_url N/A N/A N/A browser is_text_present title N/A N/A N/A browser is_text_present text N/A N/A open_editor_panel browser N/A N/A find_and_click_by_css browser .edit-button N/A N/A wait_for_editor_reload N/A title_update  Is Now New N/A N/A N/A N/A N/A browser find_by_css input[name=title] type title_update N/A N/A N/A browser is_text_present N/A title title_update N/A N/A N/A browser is_text_present text N/A text_update  that I am editing on the fly. N/A rte N/A N/A browser find_by_css .trumbowyg-editor N/A N/A N/A rte type text_update N/A N/A N/A browser is_text_present N/A text text_update N/A N/A N/A browser is_text_present N/A title title_update N/A N/A N/A pytest mark browser test_text_block_can_be_deleted_from_a_container N/A N/A admin_user browser live_server N/A N/A N/A fancypage N/A N/A factories FancyPageFactory N/A title Sample Title N/A text This is an amazing piece of text N/A N/A N/A factories TitleTextBlockFactory container N/A N/A N/A N/A fancypage containers all N/A 0 title title text text N/A N/A N/A browser visit N/A N/A live_server url N/A N/A fancypage get_absolute_url N/A N/A N/A browser is_text_present title N/A N/A N/A browser is_text_present text N/A N/A open_editor_panel browser N/A N/A find_and_click_by_css browser div.delete N/A N/A wait_for_editor_reload N/A N/A N/A N/A N/A N/A N/A N/A factories TitleTextBlockFactory _meta model objects count 0 N/A N/A N/A pytest mark browser test_text_block_can_be_added_to_container N/A N/A admin_user browser live_server N/A N/A N/A fancypage N/A N/A factories FancyPageFactory N/A N/A N/A browser visit N/A N/A live_server url N/A N/A fancypage get_absolute_url N/A N/A find_and_click_by_css browser #editor-handle N/A N/A find_and_click_by_css browser div[class=block-add-control]>a N/A N/A wait_for_editor_reload N/A N/A find_and_click_by_css browser a[href='#content'] N/A N/A find_and_click_by_css browser button[data-block-code=text] N/A N/A wait_for_editor_reload N/A default_text Your text goes here N/A N/A N/A N/A browser is_text_present default_text 2 N/A N/A N/A AssertionError Could not find text block on page N/A N/A N/A N/A browser is_element_present_by_css .edit-button 2 N/A N/A N/A AssertionError Could not find edit button for block N/A N/A find_and_click_by_css browser .edit-button N/A N/A wait_for_editor_reload N/A text_sel textarea[name=text] N/A N/A N/A N/A browser is_element_present_by_css text_sel 2 N/A N/A N/A AssertionError Could not find input area for 'text' field N/A new_text The new text for this block N/A rte N/A N/A browser find_by_css .trumbowyg-editor N/A N/A N/A rte type N/A N/A Keys ARROW_RIGHT N/A N/A len default_text 1 N/A N/A N/A rte type N/A N/A Keys BACKSPACE N/A N/A len default_text 1 N/A N/A N/A rte type new_text N/A N/A find_and_click_by_css browser button[type=submit] N/A N/A wait_for_editor_reload N/A N/A N/A N/A browser is_text_present new_text 2 N/A N/A N/A AssertionError Could not find updated text N/A N/A N/A N/A N/A TextBlock objects count 1 N/A N/A N/A N/A N/A N/A N/A TextBlock objects all N/A 0 text N/A new_text <br> N/A N/A N/A pytest mark browser test_can_be_added_with_new_image_and_link N/A N/A admin_user live_server browser N/A N/A N/A fancypage N/A N/A factories FancyPageFactory N/A im N/A N/A Image new RGB N/A 320 240 red N/A N/A __ filename N/A N/A tempfile mkstemp suffix .jpg dir TEMP_MEDIA_ROOT N/A N/A N/A im save filename JPEG N/A image_filename N/A N/A N/A os path basename filename N/A N/A N/A N/A ImageAsset objects create name test image image image_filename creator admin_user N/A second_page N/A N/A factories FancyPageFactory node__name Another page node__slug another-page N/A N/A N/A browser visit N/A N/A live_server url N/A N/A fancypage get_absolute_url N/A N/A find_and_click_by_css browser #editor-handle N/A N/A find_and_click_by_css browser div[class=block-add-control]>a N/A N/A find_and_click_by_css browser a[href='#content'] N/A N/A find_and_click_by_css browser button[data-block-code=image] N/A N/A wait_for_editor_reload N/A default_image_text Add An Image N/A N/A N/A N/A browser is_text_present default_image_text 2 N/A N/A N/A AssertionError Could not find image block on page N/A N/A N/A N/A browser is_element_present_by_css .edit-button 2 N/A N/A N/A AssertionError Could not find edit button for block N/A N/A find_and_click_by_css browser .edit-button N/A N/A wait_for_editor_reload N/A N/A find_and_click_by_css browser a[data-behaviours=load-asset-modal] N/A N/A wait_for_editor_reload N/A N/A N/A browser get_iframe 0 iframe N/A N/A N/A wait_for_editor_reload N/A N/A find_and_click_by_css iframe li[data-behaviours=selectable-asset] N/A N/A wait_for_editor_reload N/A N/A find_and_click_by_css browser .glyphicon-share N/A N/A find_and_click_by_css browser N/A N/A a[href*={}] format N/A second_page slug N/A N/A find_and_click_by_css browser button[type=submit] N/A N/A wait_for_editor_reload N/A shows_image N/A N/A browser is_element_present_by_css N/A N/A img[src$='{}'] format image_filename N/A N/A shows_image N/A N/A N/A AssertionError Image not added to image block N/A link_exists N/A N/A browser is_element_present_by_css N/A N/A div.block-wrapper>a[href*={}] format N/A second_page slug N/A N/A link_exists N/A N/A N/A AssertionError image block is not wrapped in link to other page N/A N/A N/A pytest mark browser