Note that there are some explanatory texts on larger screens.

plurals
  1. POJava webdriver: Element not visible exception
    primarykey
    data
    text
    <p>I'm having the following problem. I have a dropdown that is hidden so when I make the Select and run the test i get the following error:</p> <pre><code> org.openqa.selenium.ElementNotVisibleException: element not visible: Element is not currently visible and may not be manipulated (Session info: chrome=30.0.1599.101) </code></pre> <p>This is my select:</p> <pre><code>Select s = new Select(dropDown); s.selectByVisibleText("CHARGEBACK"); </code></pre> <p>Is there a walk around it to manipulate hidden elements?. I found the following code in one of the posts:</p> <pre><code> JavascriptExecutor jse = (JavascriptExecutor) driver; jse.executeScript("arguments[0].scrollIntoView(true);", element); </code></pre> <p>This is the html code:</p> <pre><code> &lt;div class="ui-helper-hidden"&gt; &lt;select id="formLevel:levels_input" name="formLevel:levels_input"&gt; &lt;option value="541fac58-5ea8-44ef-9664-e7e48b6c6a3c"&gt;Seleccione un Registro&lt;/option&gt; &lt;option value="dafc799c-4d5e-4b02-a882-74cb6ad98902"&gt;SECURITY&lt;/option&gt; &lt;option value="e5416086-2036-4cd0-b23e-865747aa3f53"&gt;CALL CENTER&lt;/option&gt; &lt;option value="7ea4b4ea-4f06-4d27-9541-1b0cf3f2aa22"&gt;CHARGEBACK&lt;/option&gt; &lt;option value="0f915120-7b8f-4a33-b063-5d20a834b655"&gt;PREVENÇÃO A FRAUDE&lt;/option&gt; &lt;option value="a8ef13e8-f4a5-43b8-a668-b769f6988565"&gt;ANALISE DE CREDITO&lt;/option&gt; &lt;option value="83b65a26-d4cd-43d3-b3fa-2f7894ca454a"&gt;SUPORTE A CONTA&lt;/option&gt; &lt;option value="163d0db9-590c-47a7-a271-218b2d27d8d9"&gt;REGULARIZAÇÃO FINANCEIRA&lt;/option&gt; </code></pre> <p> And it doesn't work in this case. Any help would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload