alit adlı üyeden alıntı: mesajı görüntüle
Bu şekilde deneyiniz. ChatGPT
js_code = """
let likeButtons = document.querySelectorAll('button.TRX6J[aria-label="Beğen"]:not(.clicked)');
likeButtons.forEach(function(button) {
    // Tıklama olayını oluşturuyoruz
    let event = new MouseEvent('click', {
        bubbles: true,
        cancelable: true,
        view: window
    });
    button.dispatchEvent(event);
    // Tekrar tıklamamak için butona işaret ekliyoruz
    button.classList.add('clicked');
    console.log("Tıklanan buton: ", button);
});
"""
driver.execute_script(js_code)

kodun yapısını full bozuyor hocam