Şu kodlarımda https://ay.link/Xh8c3y sitesine gittikten sonra Sitede şu botunun varlığını her saniye kontrol etsin eğer bulunursa tıklasın  <a href="javascript:;" class="btn btn-go" onclick="return false">Linke Git</a>                 using Microsoft.Web.WebView2.Core;
using System;
using System.Timers;
using System.Threading.Tasks;
using System.Windows;
using static System.Net.Mime.MediaTypeNames;
using System.Security.Policy;
using System.Windows.Input;

namespace Sh_d3s
{
    public partial class MainWindow : Window
    {
        private readonly string targetUrl = "https://www.blank.org/";
        private Timer checkTimer;

        public MainWindow()
        {
            InitializeComponent();
            InitializeAsync();
        }

        private async Task InitializeAsync()
        {
            await webView.EnsureCoreWebView2Async(null);
            webView.CoreWebView2.CookieManager.DeleteAllCookies();
            await webView.CoreWebView2.CallDevToolsProtocolMethodAsync("Network.clearBrowserCache", "{ }");

            webView.CoreWebView2.NewWindowRequested += (sender, args) =>
            {
                args.Handled = true;
            };

            webView.CoreWebView2.DOMContentLoaded += CoreWebView2_DOMContentLoaded;

            webView.CoreWebView2.Navigate("http://bc.vc/PIpU6Ql");
        }

        private async void CoreWebView2_DOMContentLoaded(object sender, CoreWebView2DOMContentLoadedEventArgs e)
        {
            string checkAndClickButtonScript = @"
            function checkAndClickButton(buttonId) {
                return new Promise((resolve, reject) => {
                    var checkExist = setInterval(() => {
                        var btn = document.getElementById(buttonId);
                        if (btn && getComputedStyle(btn).display !== 'none') {
                            clearInterval(checkExist);
                            btn.click();
                            resolve();
                        }
                    }, 100);
                });
            }
            async function performActions() {
                await checkAndClickButton('getLink');
                await checkAndClickButton('secondButtonId');
            }
            performActions();
        ";

            await webView.CoreWebView2.ExecuteScriptAsync(checkAndClickButtonScript);

            // Start checking for the target URL.
            StartUrlCheck();
        }

        private void StartUrlCheck()
        {
            checkTimer = new Timer(1000);
            checkTimer.Elapsed += CheckUrlReachedTarget;
            checkTimer.Start();
        }

        private readonly string secondaryUrl = "https://ay.link/Xh8c3y";

        private void CheckUrlReachedTarget(object sender, ElapsedEventArgs e)
        {
            System.Windows.Application.Current.Dispatcher.Invoke(async () =>
            {
                string currentUrl = webView.CoreWebView2.Source.ToString();
                if (currentUrl.Equals(targetUrl, StringComparison.OrdinalIgnoreCase))
                {
                    checkTimer.Stop();
                    webView.CoreWebView2.Navigate(secondaryUrl);
                }
            });
        }

    }
}