How to handle the element when Id changes dynamically at the End
driver.findElement(By.cssSelector("button[id^='btnCreateNewCampaign']")).click();
Similarly
it uses the regular expression with CSS Selector where id^ looks for the word starting with finish and ends with _NS_.


No comments:
Post a Comment