vendredi 18 septembre 2015

I am trying to select a checkbox in selenium but I am unable to, Why?

I have a check box in my code which I am trying to select. I have also tried the absolute xpath but it does not get selected. The code is pasted below. can someone please help me with it.

<label for="brandFilter*">ALL</label>
<div class="dijit dijitReset dijitInline dijitCheckBox dijitCheckBoxHover dijitHover dijitCheckBoxFocused dijitCheckBoxHoverFocused dijitHoverFocused dijitFocused" role="presentation" widgetid="brandFilter1">
<input id="brandFilter1" class="dijitReset dijitCheckBoxInput" type="checkbox" dojoattachevent="onclick:_onClick" dojoattachpoint="focusNode" name="brandFilter" style="-moz-user-select: none;" tabindex="0" aria-pressed="false"/>
</div>
<label class="dijitFocusedLabel" for="brandFilter1">Power Systems</label

The error that I get is:

org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (465, 669). Other element would receive the click: <div id="results-loading" class="dealreg-load" style="filter:alpha(opacity=90); opacity:0.9;">...</div>




Aucun commentaire:

Enregistrer un commentaire