mardi 8 octobre 2019

Cannot find button element C# for website

Selenium cannot find the element "Add New Place" button. I looked through the other stack overflow questions regarding this and didn't seem to completely resolve.

//C#
  driver.FindElement(By.Name("btn")).Click();
  Thread.Sleep(2000);


//HTML
  <button data-toggle="modal" data-target="#add-modal" class="btn btn-primary btn-icon-split"> ==$0 

Aucun commentaire:

Enregistrer un commentaire