How To create keywords for only xapth changing test cases

Hi Leo,

User keyword syntax

The [Arguments] setting and RETURN are what you’re after, then do something like this (warning completely untested and typed after 1am :joy:):

*** Test Cases ***
Test Case 001
    ${my_dictionary_data_1}=    Parse Xpath To Dictionary    ${xpath1}

Test Case 002
    ${my_dictionary_data_2}=    Parse Xpath To Dictionary    ${xpath2}

*** Keywords ***
Parse Xpath To Dictionary
    [Arguments]    ${xpath}
    ${dictionary_data}=  Create Dictionary
    ${column_Count}=  Get Element Count  ${total_columns}
    FOR  ${column_index}  IN RANGE  1  ${column_Count}+1
        ${xpath_available}=  Run Keyword And Ignore Status  Element Should Be Visible  ${xpath}
        ${webelements}=  Run Keyword If  ${xpath_available}  Get Webelements  ${xpath}
        @{element_list}  Create List 
        IF  ${xpath_available}
            FOR  ${element}  IN  @{webelement}
                ${element_text}=  Get Text  ${element}
                Append To List  ${element_list}  ${element_text}
            END
        END
        Set To Dictionary  ${dictionary_data}  ${key}=${element_list}
    END
    RETURN    ${dictionary_data}

Dave.