assertTextNotPresent not working as expected

View: New views
6 Messages — Rating Filter:   Alert me  

assertTextNotPresent not working as expected

by GW-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is my first try with this promising product.
 
When I run assertTextNotPresent in the IDE it fails and I get this in the console:

# [info] Executing: |open | /modules/start/start.php3 | |
# [info] Executing: |assertTextNotPresent | | sxsx |
# [error] Page text not found

The text "sxsx" is not present in the page so the test should succeed (I assume).

My real question is how do I know if this is a problem in Selenium or in Selenium IDE? Is there any reason why something as simple as assertTextNotPresent would work in Selenium but not in Selenium IDE?

Do I have to test everything in Selenium "standard" before I report a bug for the IDE?

TIA.
Roger P
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1210&messageID=3468#3468

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@...
For additional commands, e-mail: selenium-users-help@...


Re: assertTextNotPresent not working as expected

by GW-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry,

I posted in the wrong forum, should have been in Selenium IDE. Seems impossible to delete.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1210&messageID=3469#3469

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@...
For additional commands, e-mail: selenium-users-help@...


Re: assertTextNotPresent not working as expected

by Alexandre Garel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Roger P a écrit :

>This is my first try with this promising product.
>
>When I run assertTextNotPresent in the IDE it fails and I get this in the console:
>
># [info] Executing: |open | /modules/start/start.php3 | |
># [info] Executing: |assertTextNotPresent | | sxsx |
># [error] Page text not found
>  
>
TextPresent and TextNotPresent are exception to the target/value rule as
you have to put the value in the target field

|assertTextNotPresent | sxsx | |

Hope it helps
Alex





Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@...
For additional commands, e-mail: selenium-users-help@...


Re: assertTextNotPresent not working as expected

by GW-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks!

The IDE is obviously too easy to get started with;-) My assertTextPresent tests succeeded because I had left Target empty so I didn't suspect anything wrong with my assertTextNotPresent test.

Beginners error.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=1210&messageID=3471#3471

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@...
For additional commands, e-mail: selenium-users-help@...


Re: assertTextNotPresent not working as expected

by jochen69 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, i´am also biginner... I´am working with IDE 1.0.2

By me it´s NOT working. I tried a lot, but it won´t work.

Command: assertTextNotPresent

i tried all combinations in target and value field, with quotes and without. It isn´t working. Is it a bug?
I there another way to check the text on page? The text i want to check i simply saved in form tag.

Thank you.

Alexandre Garel wrote:
Roger P a écrit :

>This is my first try with this promising product.
>
>When I run assertTextNotPresent in the IDE it fails and I get this in the console:
>
># [info] Executing: |open | /modules/start/start.php3 | |
># [info] Executing: |assertTextNotPresent | | sxsx |
># [error] Page text not found
>  
>
TextPresent and TextNotPresent are exception to the target/value rule as
you have to put the value in the target field

|assertTextNotPresent | sxsx | |

Hope it helps
Alex





Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@openqa.org
For additional commands, e-mail: selenium-users-help@openqa.org

Re: assertTextNotPresent not working as expected

by kjaladi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

try this, it works -

<tr>
        <td>open</td>
        <td>http://www.google.com</td>
        <td></td>
</tr>
<tr>
        <td>assertTextNotPresent</td>
        <td>yahoo</td>
        <td></td>
</tr>

thanks.


Hello, i´am also biginner... I´am working with IDE 1.0.2

By me it´s NOT working. I tried a lot, but it won´t work.

Command: assertTextNotPresent

i tried all combinations in target and value field, with quotes and without. It isn´t working. Is it a bug?
I there another way to check the text on page? The text i want to check i simply saved in form tag.

Thank you.

Alexandre Garel wrote:
Roger P a écrit :

>This is my first try with this promising product.
>
>When I run assertTextNotPresent in the IDE it fails and I get this in the console:
>
># [info] Executing: |open | /modules/start/start.php3 | |
># [info] Executing: |assertTextNotPresent | | sxsx |
># [error] Page text not found
>  
>
TextPresent and TextNotPresent are exception to the target/value rule as
you have to put the value in the target field

|assertTextNotPresent | sxsx | |

Hope it helps
Alex





Ce message est protégé par les règles relatives au secret des correspondances. Il est donc établi à destination exclusive de son destinataire. Celui-ci peut donc contenir des informations confidentielles. La divulgation de ces informations est à ce titre rigoureusement interdite. Si vous avez reçu ce message par erreur, merci de le renvoyer à l'expéditeur dont l'adresse e-mail figure ci-dessus et de détruire le message ainsi que toute pièce jointe.

This message is protected by the secrecy of correspondence rules. Therefore, this message is intended solely for the attention of the addressee. This message may contain privileged or confidential information, as such the disclosure of these informations is strictly forbidden. If, by mistake, you have received this message, please return this message to the addressser whose e-mail address is written above and destroy this message and all files attached.

---------------------------------------------------------------------
To unsubscribe, e-mail: selenium-users-unsubscribe@openqa.org
For additional commands, e-mail: selenium-users-help@openqa.org