title: findElement By XPath not supported in Selenium VBA?
body: <pre><code>variableName = driver.findElement(By.XPath(".//*[@id='T_F2']/fieldset/div[1]/div/div[4]/span[2]"))
  </code></pre>
  
  <p>Running the above always seems to lead to the error:</p>
  
  <p><img src="https://i.stack.imgur.com/pIGne.png" alt="enter image description here"></p>
  
  <p>Why is this? I always see other people using findElement By XPath. If it helps, I generated about half of my code using Selenium's 'record' feature. I then converted the code into 'VBA/Webdriver' before pasting it into Excel to use as a Macro. </p>
  
  <p>What exactly is wrong with my code? I have used findElement a number of times before, so I'd have to guess that the problem is with the <code>By.XPath</code> part of my code... Is there any way around this?</p>
  
  <p>Edit: Even <code>variableName = driver.findElementsByXPath(".//*[@id='T_F2']/fieldset/div[1]/div/div[4]/span[2]")</code> leads to the error 'Invalid procedure call or argument' even though it looks fine to me.</p>