webelement selenium – how to found an element with xpath and link with onclick

Issue I try to get element like this : webDriver.findElement(By.xpath("//a[contains(@onclick="submitData(‘updateShortcodeAdmin’,”)")]")); or like this : webDriver.findElement(By.xpath("//a[contains(@onclick=\"submitData(\’updateShortcodeAdmin\’,\’\’);")]\")); or like this : webDriver.findElement(By.xpath("//a[contains(@onclick=\"submitData(\’updateShortcodeAdmin\’,\’\’)\")]"));…

Read More →