[Resolved] Element not visible

Hi,
I need help, Please.
I want to click on the blue button in a Modal Window
The button is a dynamic object, its xpath is like:
//[@id=“modal_565981”]/div/div[1]/div[2]/a
the number 565981 change.
So I use this xpath:
(//
[contains(@id,‘modal_’)]/div/div[1]/div[2]/a)[1]

But I got this error:

Unable to click on object ‘Object Repository/…/Valider_modal’ (Root cause: org.openqa.selenium.ElementNotVisibleException: element not visible

(Session info: chrome=67.0.3396.99)

deverse_capture.png

I found solution :slight_smile:
The xpath was not correct:
(//*[contains(@id,‘modal_’)]/div/div[1]/div[2]/a)[4]

1 Like

Credit for posting your error :slight_smile:

Please help I’m dealing with the same type issue, "Element not Visible’ error and very frustrated:
I want to select the checkbox that is called ‘VA’ on the webpage and the object’s Xpath is :
//input[@id=‘geography-states-VA’]

And here is the elment’s attributes when I inspect on the UI:

                            <input value="VA" name="geography.statesTerritories" type="checkbox" id="geography-states-VA" autocomplete="off">

                            <div>Virginia</div>

                        </label>

the Xpath is :
//input [@id=‘geography-states-VA’]

//input[@id=‘geography-states-VA’]

Hello there

I am the same Bug like this :

Bug.jpg