The isElementPresent method is available from your UI module class,
i.e. DslContext, which is shown as follows,

    boolean isElementPresent(String uid){
         WorkflowContext context = WorkflowContext.getDefaultContext()
         def obj = ui.walkTo(context, uid)
         if(obj != null){
             return obj.isElementPresent(){ loc ->
                String locator = locatorMapping(context, loc)
                accessor.isElementPresent(locator)
             }
         }

         return false
    }

That is to say, if the element could be found, will check if it is
there on the web, otherwise, return false.

To avoid additional element check, please change your
TelluriumConfig.groovy as follows,

   eventhandler{
        //whether we should check if the UI element is presented
        checkElement = false
        //wether we add additional events like "mouse over"
        extraEvent = false
    }
    //data accessor
    accessor{
        //whether we should check if the UI element is presented
        checkElement = false
    }

Thanks,

Jian

On Feb 24, 9:33 am, dominicm <[email protected]> wrote:
> Hi,
>
> I'm using Telluriuim to ceck a large table (9 columns, up to 30 rows),
> which may contain an extra element in some of the cells, depending
> upon the circumstances.
>
> I'm using getText to verify the contents but I cannot tell if the
> element is there, or whether it is returning null.
> Is there any way to access the results of the isElementPresent command
> that Selenium/Tellurium does before doing the getText?
>
> I'm also keen to avoid using extra isElementPresent requests as these
> perform very poorly in IE if the element is not present, and would
> impact performance on all browsers.
>
> Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to