Home > Net >  robotframework- unable to click a button on a modal dialogue box
robotframework- unable to click a button on a modal dialogue box

Time:10-12

when I open a particular webpage it has a EULA form that appears on top of the home page in the form of a modal in HTML/CSS. I have tried the XPath of the accept button but it says element not found also tried using handle alert. is there a unique way to handle a dialogue box in robotframework? image of HTML in inspect view

CodePudding user response:

SeleniumLibrary.Set Focus To Element    ${button_on_popup_page}
SeleniumLibrary.Click Element    ${button_on_popup_page}

hey guys sorry for the inconvenience, I figured it out, as I've shown in the code snippet, I first set focus to the button and then used click element this seemed to work thank you

  • Related