вот код и попытка автоматизировать вызов этого модуля.
<button type="button" class="module " data-ember-action="" data-ember-action-492="492">
<div class=" module-image ">
<img src="/console/assets/images/modules/Dashboard.svg" alt="Service Dashboard" width="60" height="60">
</div>
<div class="module-name">
Service Dashboard
</div>
</button>
Я пробовал WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath("//button[@class='module' and text()='Dashboards'][@data-ember-action]"))).click();
Но получил следующую трассировку:
Traceback (most recent call last):
File "/home/netscout/PycharmProjects/Pulse-BTT/NG1-BTT.py", line 18, in <module>
WebDriverWait(driver, 20).until(ExpectedConditions.elementToBeClickable(By.xpath("//button[@class='module' and text()='Dashboards'][@data-ember-action]"))).click();
TypeError: 'str' object is not callable