Get process id of newly opened chrome instance in robot framework

  • Get process id of newly opened chrome instance in robot framework

I have tried below code but getting error Non-existing index or alias ‘497B62BDDFF82EA389B67EE3DDDA61FE’

*** Variables ***

${counter}= ${0} # ${} notation coerces value to a number

*** Test Cases ***

Test-Task
Launch Application

*** Keywords ***
Launch Application
${driver}= Create Webdriver Chrome alias=myproc
Log ${driver}
${handles}= Get Window Handles

${result} = Get Process Result handle=${handles}[0]

${process_id}=  Get Process Id  handle=myproc
Log    ${process_id}
${process_object}=  Get Process Object  handle=${handles}[0]
Log    ${process_object}

Close Browsers
Close All Browsers