0

I follow the javascript: How to check if an element is clickable or not and check document.getElementsByTagName('button')[0].getAttribute('onclick') for the https://matchmaking.grip.events/the8thannualrealestatefamilyofficeandprivatewealthmanagementforumwest/event-login page, where I can click the Login button, but JS code return null

I am able to see click eventlistner in Developer tools in chrome.

Event Listener view

This means, its clickable and when I clock, it load new components.

But javascript code return null.

Clicable call

Is there any other way to know if that element is clickable or not ?

Nilesh
  • 20,521
  • 16
  • 92
  • 148
  • 1
    `onclick` attribute does not means that an element Event is not assigned via JavaScript using i.e: `addEventListener` (which BTW is the preferred way to attach listeners). Yes, the *Event listeners* panel should provide you with all the necessary information. – Roko C. Buljan Jun 12 '23 at 22:05
  • what exactly are you trying to do/accomplish? – epascarello Jun 12 '23 at 22:33
  • There is one `div` which has `click` event, I can see that in `Event Listeners` tab, but when I use automation using `selenium + python`, and try to send click event, it's failing by saying that, `div` is not clickable. How can I check `div` is clickable or not ? – Nilesh Jun 12 '23 at 22:37
  • @RokoC.Buljan is there any other way to check if the `Event Listeners` shows, it has `click` event, we can check by coding ? – Nilesh Jun 12 '23 at 22:38
  • @Nilesh besides `getEventListeners` there's no other simple/native way to crawl functions and code ancestry in search for possible dynamic event delegation - as far as I know. Still not sure what's the exact code that's bugging you. Mind to share? – Roko C. Buljan Jun 12 '23 at 22:42

0 Answers0