So I have been trying to challange myself and I have been trying to solve grandparent and parent from using <i class="test-object"></i>
with using the code below
<button do-something="" primary-button="" class="gfjhghjfghjfgfh" disabled="">
<span class="primary-button-wrapper">
<i class="test-object"></i>
<span>Nice</span>
</span>
Basically what I am trying to be able to do is to find the grapndparent and parent (button and span) using javascript selenium.
So for I have only achieved:
const testing= await driver.findElement(webdriver.By.className('create-project'));
console.log(await testing.getAttribute('class'));