Support > Forums > OpenBots Studio > XPath Selenium Element Action

XPath Selenium Element Action

Marco Zenere

  • Reporter
  • Calender Icon July 02,2021 at 10:34 AM

I try to click on an element in a web page, a radio button. I put the XPath, using Inspect function of Chrome, but OpenBots give me an error and I cannot click on "Ok" in the window "Add new command". The Xpath is //*[@id="ee"] , is it a format error?

This forum has 175 topics, 471 replies, and was last updated 7 hours ago by DHARANI R

Nataly Alvarado

  • Participant
  • Calender Icon July 06,2021 at 4:01 PM

Hello Marco,

you should be able to find the element as long as the indicated xpath is unique and stable. I can try to help you if you share more information, but in general, there should be no issues automating through the xpath.

Marco Zenere

  • Participant
  • Calender Icon July 05,2021 at 8:42 AM

Thank you, but I can't find a browser element, could openbots have problems with Javascript elements?

Nataly Alvarado

  • Participant
  • Calender Icon July 02,2021 at 7:53 PM

Hi Marco,

if you are using version 1.5.0 or higher, you need to format the xpath as a string (we use c# language inline). In this case, you would indicate it as: "//*[@id='ee']"

You are not authorized to reply, please click here to login and add your reply to this topic.