I am new to Selenium and I want to know how the value to the text box gets loaded when there is no value showing in HTML tag :
<input type="text" name="qty" id="qty" maxlength="5" value="" title="Qty" class="quantity-input qty" Or is it getting data from jscript?
<script type="text/javascript"> jQuery(document).on('click','.quantity-plus',function(){ var qty = jQuery.trim(jQuery('#qty').val()); if(qty < 99999) { var moq = jQuery('input[name=opinions]:checked').attr('data-moq'); var incrementquantity = jQuery('input[name=opinions]:checked').attr('data-incrementquantity'); var incrementmode = jQuery('input[name=opinions]:checked').attr('data-incrementmode'); var qty = jQuery.trim(jQuery('#qty').val()); jQuery('.moqerror').html(''); if(Number(qty) >= Number(moq) && parseInt((qty-moq)%incrementquantity) == 0) { var newqty = parseFloat( parseFloat(qty) + parseFloat(incrementquantity)); jQuery('#qty').val(newqty); updateEstimatePrice(); }