SyntaxFix
Write A Post
Hire A Developer
Questions
text = driver.findElement(By.id('p_id')).getAttribute("innerHTML");