Having problem with Python Selenium and Phantom JS. Problem : setting driver to Phantom JS
<div class="ProfileTweet-action ProfileTweet-action--more js-more-ProfileTweet-actions">
<div class="dropdown">
<button class="ProfileTweet-actionButton u-textUserColorHover dropdown-toggle js-dropdown-toggle" type="button" aria-haspopup="true">
</button>
<div class="dropdown-menu is-autoCentered">
<div class="js-first-tabstop" tabindex="0"></div>
<div class="dropdown-caret">
<div class="caret-outer"></div>
<div class="caret-inner"></div>
</div>
<ul tabindex="-1" role="menu" aria-labelledby="menu-1" aria-hidden="false">
<li class="js-actionDelete" role="presentation">
<button type="button" class="dropdown-link" role="menuitem">Удалить </button>
</li>
</ul>
<div class="js-last-tabstop" tabindex="0"></div>
</div>
</div>
</div>
Actual problem is here ---- after clicking on this class
ProfileTweet-action ProfileTweet-action--more js-more-ProfileTweet-actions
code below
driver.find_element_by_css_selector("div.IconContainer").click()
is not doing the trick but when driver is set to Firefox it works as expected . Is there anything I am missing? Thanks
Aucun commentaire:
Enregistrer un commentaire