How can I set web element text using java script executor? Or is there any other way to do this?
<a class="selectBox selectBox-dropdown selectBox-menuShowing selectBox-active" style="width: 52px; display: inline-block; -moz-user-select: none;" title="" tabindex="0">
<span class="selectBox-label" style="width: 13px;">10</span>
<span class="selectBox-arrow"/>
</a>
There are two span elements under the tag - this is a drop. The user clicks on the range [2], and a list is displayed that contains data such as 10, 20, 30, 40, etc. The user clicks on the number (element) and is set as the text of the range [1] (In this case, 10). How do I solve this?
I tried Action builder and it does not work. Any other suggestions?
source
share