Selenium Webdriver sendkeys: clears down fields after text is entered -


i'm encountering particularly frustrating issue webdriver's sendkeys method. witnessing fields being filled, focus removed, fields cleared.

source code snippet:

    <div class="search-row__departure"> <div class="search-label"> <label onclick="$(this).parent().parent().find('.airport-input-row:first input, select').focus();">departure</label> </div> <div class="search-input__text"> <span id="id23"> <span id="idc"> <div class="airport-input-row">     <span class="inputcontainer">     <input id="id11" class="departurepoint" name="airport_selection_panel:departurepoint:departureairportpanel:listview:0:selector:airportfragment:departurepoint" value="" autocomplete="off" onblur="var wcall=wicketajaxpost('./?0-ibehaviorlistener.4-brix~page~2-brix~journey~4-brix~package_search-child-child-packages_search_form-airport_selection_panel-departurepoint-departureairportpanel-listview-0-selector-airportfragment-departurepoint', wicketserialize(wicket.$('id11')),function() { }.bind(this),function() { }.bind(this), function() {return wicket.$('id11') != null;}.bind(this));" type="text"/> </span> <script>$(function(){$('#idc').parent().trigger('addfield',['departurepoint','#idc .departurepoint']);})</script> </div> 

notice input tag has many attributes.

i have tried:

inputfield.clear(); inputfield.click(); inputfield.sendkeys("text input"); 

also:

string script = "arguments[0].value='text input';"; javascriptexecutor("script here", inputfield); 

also:

inputfield.sendkeys("text input", keys.tab); 

in instances, field filled , erased driver moves next field. no difference on ff or chrome

i using selenium 3.0.0-beta3, firefox 49.0, chrome 53.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -