Hi Everyone!
I am having another frustrating problem with selenium.
I am using VBA + Selenium and I am trying to check wether an elemnent exists or not.
I am doing it by finding the element and checking it's size. If it is 0 it means that it is not present.
I use the following code:
element_size = driver.FindElementByCss("div.toto > p:nth-child(6)").Size
I am probably using it wrong because I get an "object doesn't support this property" error. However if I use:
element_size = driver.FindElementByCss("div.toto > p:nth-child(6)").Text
Then I get the desired text.
So what is wrong with my size code? ( I also tried .size() but I get the same error)
Thanks for your help in advance and have a nice weekend!