jquery - Handling 500 Internal server error using Selenium2Library in Robot -


i using robot framework selenium2library automate web application , while executing smoke suite experienced frequent error says "error! requested url returned 500 - internal server error" when test script performing below actions:

  1. when script clicks links disableuser, reset password etc open confirmation dialog box.
  2. when script selects option drop down opens dialogbox
  3. when script clicks on exportlink open dialog box save file etc..

the script throws 'unexpectedalertpresentexception' these above scenarios when pop appears internal server error...

when cross verified same scenario manually i.e. clicked on same link launch dialog box disable user account , got internal server error popup on top of disable user dialog box , when cicked ok on error popup, disable user dialog box still spinning , fields not displayed on dialog.

i know if there way handle internal server alert popup , proceed further because rest of test cases fail because of not handling alert.

thanks in advance.

you can handle exceptions this:

run keyword , ignore error

${status}            ${value} =                run keyword , ignore error      click link    myerrorlink run keyword unless    '${status}' == 'pass'    click link                        closedialogue run keyword if        '${status}' == 'pass'    click link                        proceed 

Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -