Forum Discussion

kaiiii's avatar
kaiiii
Regular Contributor
7 years ago

Class contain space in its value

page.FindChildByXPath("//div[@class='columns medium-5']")
In the above XPath, it's always create problem to find that web element. I think the reason is spaces in class (like space between columns and medium-5). i want to know, am i right or there is a another reason. please explain also.

2 Replies

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      By " it's always create problem to find that web element" what do you mean? Do you get an error message? If so, what?  Can you find the object by using Object Spy?  Is the object visible in the Object Browser?

       

      I'm not well versed in using XPath but I don't think that the space is the problem.