Currently, I am attempting to locate the element within the compound class
sfnDialOrChartPanel sfnEditBorder
using the method findElement(By.cssSelector(".sfnEditBorder"))
. Although it seems to be locating it correctly, when a context click is performed, no menu appears as expected.
Could I possibly be incorrectly utilizing the CSS
selector? Is there a way to display the selenium mouse location in order to see exactly where the right-click action is being executed?
Thank you
Chris
Actions actions = new Actions(webDriver_);
WebElement masterPanel = webDriver_.findElement(By.cssSelector(".sfnEditBorder"));
actions.contextClick(masterPanel);
I attempted to check if there were multiple occurrences of .sfnEditBorder
by doing the following...
List<WebElement> masterPanel = webDriver_.findElements(By.className(".sfnEditBorder"));
However, only one instance was found. Any other suggestions?