79211317

Date: 2024-11-21 13:16:49
Score: 1
Natty:
Report link

I'd suggest a few steps:

  1. try running the same step after a few seconds (sometimes 2s is not enough to element to load)
  2. check if you are interacting with the correct window/tab
  3. verify if there are no "spaces" in the text try using contain: bot.FindElementByXPath("//div[contains(text(), 'IMECall')]").Click
  4. check for iframes (I had many problems with that when I was learning to use selenium with vba) check if there is a tag "iframe" in devtools. if the element is inside a frame:

bot.SwitchToFrame bot.FindElementByTag("iframe")

bot.FindElementByXPath("//div[text()='IMECall']").Click

bot.SwitchToDefaultContent ' Return to the main page

there are other steps, but those would be my first guesses

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: rhashiba