I am trying to use selenium to access the text of a css element.
WebElement test = driver.findElement(By.cssSelector("div.CLFSBTextWithLink"));
System.out.println(test.getText());
This is what I'm doing right now but the output is empty.
For example the there might be a link or text on a website called "Company" and when I use Selenium to check where the element is, it says that the target is css=div.CLFSBTextWithLink. Now I want to be able to get the value "Company" somehow.