--
You received this message because you are subscribed to the Google Groups "Selenium Developers" group.
To post to this group, send email to selenium-...@googlegroups.com.
To unsubscribe from this group, send email to selenium-develo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/selenium-developers?hl=en.
You should not be using findElement to determine element non-presence; use findElements() and check for zero-length responses. As a consequence of this, your tests should not be throwing any exceptions that cross remoting boundaries for regular, non-failing runs. I updated the javadoc on findElement about this in r14821.
That sounds real slow, and I think we should look into it, at least consider upgrading our stone-age old version of the json library. Please file an issue.
You should not be using findElement to determine element non-presence; use findElements() and check for zero-length responses. As a consequence of this, your tests should not be throwing any exceptions that cross remoting boundaries for regular, non-failing runs. I updated the javadoc on findElement about this in r14821.
That sounds real slow, and I think we should look into it, at least consider upgrading our stone-age old version of the json library. Please file an issue.
They should take the same time to return. Both respect implicit waits.
My tests also have some element not present" checks that they do.
They are used to verify that certain dynamic elements are not showing
up at the wrong time.
Perhaps the issue is that the lack of presence test is using something
designed to check for something being present. Adding a method that
would verify, via a boolean result, that something is not present
should provide a correct test that would not incur this type of
inadvertent overhead.
I am sure a lot of other people have the need to occasionally verify
that some element like a button or menu item is not showing up when it
shouldn't. Adding a method to do just that would be an improvement
IMHO.
Mike
On Nov 21, 12:03 pm, Kristian Rosenvold <kristian.rosenv...@gmail.com>
wrote:
I see the point that there might be a more obvious way to do this but
this certainly is a good workaround.
Adding something to the findElement javadoc saying that to do a
negative test to use findElements instead would also be helpful.
Thanks a lot everyone.