Есть скрытая кнопка настройки, пока вы не прокрутите ее в нескольких разделах консоли администратора для Gsuite, и у них всех будет одинаковое значение класса и текст.Я знаю конкретный раздел (соответствие контента), который я хочу с помощью кнопки конфигурации, но я не совсем уверен, как точно определить скрытую кнопку.
Я пытался сделать что-то вроде этого:
driver.find_element_by_xpath("//div[contains(@class, 'gwt-Label title-widget') and .//text()='Content compliance'] and //div[contains(@class, 'NYMEHID-pd-m' and .//text()='Configure']").click()
Но я довольно плохо знаком с селеном и xpath, так что я не думаю, что это на самом деле поиск или селендаже может видеть кнопку конфигурации, пока мышь не прокручивает ее.Любая помощь будет приветствоваться, спасибо.
<tr style="">
<td class="title-column">
<div>
<div class="gwt-Label title-widget">Content compliance</div>
<div class="gwt-Label disabled-email-setting-label" aria-hidden="true" style="display: none;">Disabled</div>
<div class="gwt-Label disabled-email-setting-label" aria-hidden="true" style="display: none;"></div>
<div class="gwt-Label inherit-label">Not configured yet</div>
</div>
</td>
<td class="column-content">
<div style="width: 100%;">
<div class="gwt-Label">Configure advanced content filters based on words, phrases or patterns.</div>
</div>
</td>
<td class="column-content inherit-column">
<div class="settingGroupActionPopupBase visuallyHidden">
<div class="settingGroupActionPopupPanel">
<button type="button" class="quantumButton quantumButton-raised">
<div>
<div class="NYMEHID-pd-d" style="display:none" title="Configure"></div>
<div class="NYMEHID-pd-m" style="display: block;">Configure</div>
<div class="NYMEHID-pd-e" style="left: -48px; top: -91px;"></div>
<div class="NYMEHID-pd-f" style="left: -48px; top: -91px;"></div>
</div>
</button>
</div>
</div>
</td>