Re: [easyb-users] EasyB + Maven + Selenium ::: getText() is not working

50 views
Skip to first unread message

Andrew Glover

unread,
Jul 24, 2012, 12:57:27 PM7/24/12
to easyb...@googlegroups.com
can you include your easyb script? looks like what ever variable you attached getText() to isn't scoped properly. 

On Tue, Jul 24, 2012 at 12:24 PM, nax143 <venkat...@adfonic.com> wrote:
I am new to EasyB , I have setup maven project and configured POM.xml , so far fine.

I have added 2 texts to the Autosuggest text box , I want to extract text .But getText() method is not working..

HTML Before selecting texts in auto suggest text box :
***********************************************************************
<div id="j_idt19" class="ui-autocomplete-multiple">
<ul class="ui-autocomplete-multiple-container ui-widget ui-inputfield ui-state-default ui-corner-all ui-state-focus ui-state-hover">
<li class="ui-autocomplete-input-token">
<input id="j_idt19_input" type="text" autocomplete="off" name="j_idt19_input"/>
</li>
</ul>
<select id="j_idt19_hinput" class="ui-helper-hidden" multiple="multiple" name="j_idt19_hinput"/>
*************************************************************************

After selecting 2texts :
**************************************************************************
<div id="j_idt19" class="ui-autocomplete-multiple">
<ul class="ui-autocomplete-multiple-container ui-widget ui-inputfield ui-state-default ui-corner-all ui-state-focus ui-state-hover">
<li class="ui-autocomplete-token ui-state-active ui-corner-all ui-helper-hidden" data-token-value="Campaign A" style="display: list-item;">
<span class="ui-autocomplete-token-icon ui-icon ui-icon-close"/>
<span class="ui-autocomplete-token-label">Campaign A</span>
</li>
<li class="ui-autocomplete-token ui-state-active ui-corner-all ui-helper-hidden" data-token-value="campaign 123" style="display: list-item;">
<span class="ui-autocomplete-token-icon ui-icon ui-icon-close"/>
<span class="ui-autocomplete-token-label">campaign 123</span>
</li>
<li class="ui-autocomplete-input-token">
</ul>
<select id="j_idt19_hinput" class="ui-helper-hidden" multiple="multiple" name="j_idt19_hinput">
******************************************************************************************************************

Error :

No signature of method: java.util.ArrayList.getText() is applicable for argument types: () values: []. 
Possible solutions: getAt(groovy.lang.EmptyRange), getAt(groovy.lang.Range), getAt(int), getAt(java.lang.String), getAt(java.util.Collection), getAt(java.lang.String)


Can anyone help , is it because of EasyB or due to HTML ?

Nax143


--
You received this message because you are subscribed to the Google Groups "Easyb Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/easyb-users/-/zTxAMkZOAwAJ.
To post to this group, send email to easyb...@googlegroups.com.
To unsubscribe from this group, send email to easyb-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/easyb-users?hl=en.



--
Sincerely,

Andrew Glover
703.577.0830 (cell)
Reply all
Reply to author
Forward
0 new messages