Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Working on selenium automation ,not able to find element using by id/xpath/css selector for a dynamically changing id

Avatar

Level 1

i am trying to open a NewPage via siteadmin using selenium, Since the id is getting change after every refresh , hence its not a consistent behavior,

Further not able to input text to the newly opened dialog box.

<input type="text" size="20" autocomplete="off" id="ext-comp-1079" name="title" class="x-form-text x-form-field x-form-invalid" style="width: 311px;">
            driver.findElement(By.cssSelector("title")).sendKeys(wf.getProjectName());

finding by name does not give any result. 

Can any one guide !! 

  

0 Replies