I need to get the text inside the element and I am using
Inner HTML, in
Java Selenium but all the
css selectors written by me, are wrong, can you help me to get the right one please? Also it turn out, that the element is within a frame, how can i assess an element in a frame?
WebElement Element = obj.findElement(By.xpath("//*[@id=\"container\"]/div/div/span")); System.out.println(Element.getAttribute("innerHTML"));
this is the way that should help me to get the text