I'm sorry but English is not my native language.
I am trying to write a script that will react to an alarm on a website. Unfortunately, I can not deal with it.
Code: Select all
<div class = "tv-alert-notification-dialog__subtitle"> alert 1 </ div>
Then I have to confirm the alarm button by pressing "OK" on the button
Code: Select all
<div class = "js-dialog__action-click js-dialog__no-drag tv-button tv-button - primary" data-name = "ok"> OK </ div>
I tried.
Code: Select all
Contents := wb.document.getElementsByClassName("tv-alert-notification-dialog__subtitle")[0]
MsgBox %Contents%