Google form automation

I was trying to automate a google form submit by robofraework RPA.I have this google form
Google Form Automation I am using the below keyword to set the value

*** Keywords ***
Set Value By Xpath
    [Arguments]    ${xpath}    ${value}
    ${result}=    Execute Javascript    document.evaluate('${xpath}',document.body,null,9,null).singleNodeValue.value='${value}';
    [Return]    ${result}
*** Keywords ***
Fill And Submit The Form
    [Arguments]    ${workload}
    Set Value By Xpath    //*[@id="mG61Hd"]/div[2]/div/div[2]/div[1]/div/div/div[2]/div/div[1]/div/div[1]/input    ${workload}[test_file]
    click element  //*[@id="mG61Hd"]/div[2]/div/div[3]/div[1]/div/div/span/span

and from a another task I am calling Fill And Submit The Form but it is not working . Actually it is not seeting value in the data-initial-value of the google form text . How can I do that ?

I belive this is getting answered in Slack

1 Like