Hi, I might be missing something, but how do I select an input that is a radio button?
To add further context. I am being told the radio button is not clickable because the click is going to another div. Is there a way to overcome this? The radio button is on a modal dialog.
@mmer you have not responded to my answers to your other questions above yet. Did they help?
I moved on ( tried latest version etc - I only have ssh access no x is available on those nodes.) so hence my question here .
This is the error I am seeing ":message "element click intercepted:"
Is there a way of focusing on an element then clicking it? I.e. find it and then click it.
If I use (e/exists? driver {:tag :input :id "id4"}) it return true. So I don't know why I can't click it.
could be some element is overlapping it, which could be temporary, did you try introducing a wait?
Nothing it is the modal that is getting the clock because of wrapping in divs.
What I meant was a div might be on top of the radio button while the dialog is being constructed (maybe by some javascript). Did you try a wait?
The issue is that rather than using a simple radio button - they have mashed the view with divs and spans in order to make it "look good", Clicking on a label seems to work. Thanks for you efforts.
You are welcome! It can sometimes be tricky to simulate some user interaction with the complexities of webdrivers, browsers, and web pages themselves. Since etaoin is a thin wrapper over webdriver, you can often find solutions/ideas by searching the web for what you are trying to do or are stuck on. Ex. googling for "webdriver element click intercepted".
Also, I find inspecting the dom in the browser is often helpful.
That was how I solved it, what was wrong with normal html