how to click on 'new
' which newly generates after clicking on a button? in C# selenium

前端 未结 1 444
庸人自扰
庸人自扰 2021-01-28 03:51

before i clicking the button, the html code for the page is below

but after clicking a button

相关标签:
1条回答
  • 2021-01-28 04:25

    You can click the button according to the coordinates.

    For example:

    Actions action = new Actions(driver);
    action.MoveToElement(driver.FindElement(By.Id("layerContainer")), 97, 272).Click().Perform();
    

    Maybe this method will help you.

    0 讨论(0)
提交回复
热议问题