OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Selenium Python "unable to locate element' [closed]

  • Thread starter Thread starter jamarsh
  • Start date Start date
J

jamarsh

Guest
For several years, I have been regularly collecting data from my company's cloud based medical records. Recently, the management have modified the DOM and my script now fails to find the 'Appointments' button.

Code:
<div class="patient-chart-container">
  
    <div id="patient_sidebar_wrapper" ng-controller="sidebarController">
  <div id="patient_sidebar">
    <a class="btn btn-block btn-success" href="/patients/new/" style="margin-bottom: 20px;">
      <i class="icon-plus"></i> Add new patient
    </a>

    <ul class="menu3 nav nav-tabs nav-stacked">
      <li id="id_sidebar_demographics" class="dashboard">
        <a href="/patient_demographics/89783953/"><span>Demographics</span></a>
      </li>
      <li id="id_sidebar_appointments" class="dashboard">
        <a href="/misc/patient_appointments/89783953/"><span>Appointments</span></a>
      </li>
<p>For several years, I have been regularly collecting data from my company's cloud based medical records. Recently, the management have modified the DOM and my script now fails to find the 'Appointments' button.</p>
<pre><code><div class="patient-chart-container">

<div id="patient_sidebar_wrapper" ng-controller="sidebarController">
<div id="patient_sidebar">
<a class="btn btn-block btn-success" href="/patients/new/" style="margin-bottom: 20px;">
<i class="icon-plus"></i> Add new patient
</a>

<ul class="menu3 nav nav-tabs nav-stacked">
<li id="id_sidebar_demographics" class="dashboard">
<a href="/patient_demographics/89783953/"><span>Demographics</span></a>
</li>
<li id="id_sidebar_appointments" class="dashboard">
<a href="/misc/patient_appointments/89783953/"><span>Appointments</span></a>
</li>
</code></pre>
 
Top