I tried WebDriverWait, .click(), .sendKeys(Keys.RETURN), implicitWait, explicitWait and many more methods, but I'm unable to click on this web element.
<div class="actions style-scope tv-overlay-record-on-the-go">
<tv-button pill-action="" class="style-scope tv-overlay-record-on-the-go x-scope tv-button-2 left"><button class="style-scope tv-button"><div class="wrapper style-scope tv-button"><iron-icon id="icon" class="style-scope tv-button x-scope iron-icon-0"></iron-icon><div id="content" role="presentation" class="style-scope tv-button">Got it</div></div></button>
<div
class="hover-hint style-scope tv-button"> </div>
</tv-button>
</div>
Based off the above HTML code, I created the following xpath:
WebElement gotIt = driver.findElement(By.xpath("//div[@class='actions style-scope tv-overlay-account-active']//div[@id='content']"));
gotIt.click();
I believe the code runs and acknowledges that the button is there, and thus the web element is created successfully. But, when I try to interact with it by using the many interaction methods, nothing happens.
Exception I got: org.openqa.selenium.ElementNotInteractableException: element not interactable
