Menu

Turning off loggin temporarily

Mark
2010-04-27
2013-05-14
  • Mark

    Mark - 2010-04-27

    Hi all,

    I am using LoggingSelenium with TestNG to log and test our website application.

    I have a common method to check after each navigation to see if we have ended up on an error page.

    This checks to see if text at //div/h1 is Error.

    Now some pages do not have this element, resulting in the SeleniumLogging reporting an error.

    Is there anyway I can check to see if element is present without logging in output, as this is not an error.

    Many thanks, for your help.

    Mark

     
  • erezso

    erezso - 2010-06-10

    hi Mark,

    Yes you can !!!
    parse the html page.
    use parser like html_paser / Jericho etc….
    hope it can help you

    Erezso

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.