Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2076

    How can I set it up so that if a certain message is ever displayed on a page then the system sends an error alert?

    #2123

    You can use regular Keywords with “!” – logical NOT element. For example, you need to
    receive the alert when message “Exact keyword” appears on your page. Add the keyword
    “Exact keyword” as usual, then click on it and at the field “Properties”=>”Keyword” add
    expression !”Exact keyword”.

    #2795
    Mark
    Guest

    Can you further clarify how the “!” NOT operation is done using KeywordAssert? I have tried several things including your instructions with no luck. What would be the equivalent for the following statement:

    tab0.KeywordAssert (“An error has occurred”);

    #2796

    Hello,

    If you need to check when “An error has occurred” keyword is found on the page and receive alert on it, then:

    tab0.KeywordAssert (“{[!\”An error has occurred\”]}”);

    Please, note, that you should probably re-enter double quotes in Scripting Tool due to different formatting.

    Regards

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.