Ask coding questions

← Back to all posts
Identifying class of login button
upsideumop (6)

sooooooooo... im making a selenium bot, but im trying to get an element by its class, but in the code of the login pg i cant find the clas for the login button. the code is in the comments bc there is a lot.

Answered by 19ecal (232) [earned 5 cycles]
View Answer
Comments
hotnewtop
19ecal (232)

Right click on the login button and hit inspect, that should open the html at the button and then you should be able to find the class name

upsideumop (6)
<!DOCTYPE html><html lang="en"><head> <script> (function () { var isTouch = 'ontouchstart' in window || 'onmsgesturechange' in window; var isMac = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'].indexOf(window.navigator.platform) > -1;
    if (isMac && isTouch) {
        var date = new Date();
        date.setFullYear(date.getFullYear() + 1);

        document.cookie = '_mu_force_ipad=1;path=/;domain=.musescore.com;expires=' + date.toUTCString() + ';';
        window.location = window.location.href
    }
})()
</script> <link href="https://musescore.com/user/login" rel="canonical"> <link href="https://musescore.com/static/public/build/musescore/vendor.1e7533f4a768a2ed558ad19bb5c8e684.js" rel="preload" as="script"> <link href="https://musescore.com/static/public/build/musescore/ms~runtime.766eefbac3d2621bd99b6cccf83e6afc.js" rel="preload" as="script"> <link href="https://musescore.com/static/public/build/musescore/ms.60e1c95318c5fabaffdef6cfac71724b.js" rel="preload" as="script"> <title>Log in to Musescore | Musescore.com</title> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no, viewport-fit=cover"> <meta charset="utf-8" /> <meta name="author" content="Musescore" /> <meta name="google-play-app" content="app-id=com.musescore.playerlite" /> <meta name="kindle-fire-app" content="app-id=com.musescore.player" /> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="MobileOptimized" content="width" />
<meta name="HandheldFriendly" content="true" />

<meta name="csrf-param" content="_csrf">
<meta name="csrf-token" content="C6B5Ua2YX9Y0Q-FYMQXqRR3y3sZXB5-V9PRxsF3KiKtRkAk04tpmgmYi0yp0QI51UMOr62NMqseSghLIDbC7nw=="> <link rel="manifest" href="/manifest.json" /> <link rel="icon" type="image/svg+xml" href="https://musescore.com/static/public/img/product_icons/musescore/favicon.svg"> <link rel="icon" type="image/x-icon" href="https://musescore.com/static/public/img/product_icons/musescore/favicon.ico"> <link rel="apple-touch-icon" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-precomposed.png" /> <link rel="apple-touch-icon" sizes="72x72" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-72x72-precomposed.png" /> <link rel="apple-touch-icon" sizes="76x76" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-76x76-precomposed.png" /> <link rel="apple-touch-icon" sizes="114x114" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-114x114-precomposed.png" /> <link rel="apple-touch-icon" sizes="120x120" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-120x120-precomposed.png" /> <link rel="apple-touch-icon" sizes="144x144" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-144x144-precomposed.png" /> <link rel="apple-touch-icon" sizes="180x180" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-180x180-precomposed.png" /> <link rel="apple-touch-icon" sizes="192x192" href="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-192x192-precomposed.png" /> <meta name="application-name" content="Musescore" /> <meta name="msapplication-TileColor" content="#fff"/> <meta name="msapplication-TileImage" content="https://musescore.com/static/public/img/product_icons/musescore/apple-touch-icon-precomposed.png"> <script> var UGERROR = { errors: [], loggerLoaded: false, }; var oldOnError = window.onerror; var loadScript = function (src, resolve) { UGERROR.loggerLoaded = true; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = src;
    var changeState = function () {
        if (!loaded) {
            resolve()
            loaded = true;
        }
    };
    var loaded;

    script.onreadystatechange = changeState;
    script.onload = changeState;

    var node = document.getElementsByTagName('script')[0];
    node.parentNode.insertBefore(script, node);
};

UGERROR.loadErrorLogger = function (release) {
    var whitelistUrls = [
        new RegExp('https://musescore.com/static/public')
    ];

    if (window.location.pathname !== '/') {
        whitelistUrls.push(new RegExp(window.location.href))
    }

    !UGERROR.loggerLoaded && loadScript('https://musescore.com/static/vendor/centry/raven.3.27.0.min.js', function () {
        var data = {}
        var tags = {"country":"US","isProUser":false,"isAuthenticated":false}
        if (window.navigator.connection) {
            var conn = window.navigator.connection
            data.downlink = conn.downlink
            data.effectiveType = conn.effectiveType
            data.rtt = conn.rtt
            tags.effectiveType = conn.effectiveType
        }

        data.id = parseInt('0', 10);
        data.userId = '0';

        window.onerror = oldOnError;
        window.Raven.setUserContext(data)
        window.Raven.config('https://[email protected]/6', {
            release: release,
            whitelistUrls: whitelistUrls,
            ignoreErrors: [/ChunkLoadError:.*/],
            tags: tags,
        }).install();
        UGERROR.errors.forEach(function (args) {
            (args.length > 1) ? window.onerror.apply(this, args) : window.Raven.captureException(args[0]);
        });
    })
};

window.onerror = function () {
    UGERROR.errors.push(arguments);
    oldOnError && oldOnError.apply(this, arguments);

    if (!UGERROR.hasFirstError) {
        function load() {
            UGERROR.loadErrorLogger("mu-web_1.18.71");
        }

        if (document.readyState === 'complete') {
            load();
        } else {
            window.addEventListener('load', load)
        }
        UGERROR.hasFirstError = true
    }
};
</script> <link rel="stylesheet" href="https://musescore.com/static/public/build/musescore_old/index_desktop_ver1617810612.css"> <link rel="preload" href="https://musescore.com/static/vendor/jquery-3.2.1.min_ver1617810612.js" as="script"> <link rel="preload" href="https://musescore.com/static/public/build/musescore_old/index_desktop~runtime.6d02709e138daff6ee92daa60d1ec3a6.js" as="script"> <link rel="preload" href="https://musescore.com/static/public/build/musescore_old/index_desktop.89ba6418bed1e2bb362ac34b4e4acf19.js" as="script"> <link rel="preload" href="https://musescore.com/static/public/build/polyfills/polyfills.js" as="script"> <meta name="mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#2074bc">
</head>
<body class="js desktop js-cookie-compliance page-boxed-content theme-react"> <script> var hasFirstTap = false; (function () { function onFirstTap () { hasFirstTap = true document.body.removeEventListener('touchstart', onFirstTap) }
    document.body.addEventListener('touchstart', onFirstTap)
})()
</script>
    <div class="js-page react-container">
        </div>
    
    
            <script defer src="https://musescore.com/static/vendor/jquery-3.2.1.min_ver1617810612.js"></script>
    
    <script defer src="https://musescore.com/static/public/build/polyfills/polyfills.js"></script>

            <script defer src="https://musescore.com/static/public/build/musescore/vendor.1e7533f4a768a2ed558ad19bb5c8e684.js"></script>
    <script defer src="https://musescore.com/static/public/build/musescore/ms~runtime.766eefbac3d2621bd99b6cccf83e6afc.js"></script>
    <script defer src="https://musescore.com/static/public/build/musescore/ms.60e1c95318c5fabaffdef6cfac71724b.js"></script>
                    <script defer src="https://musescore.com/static/public/build/musescore_old/index_desktop~runtime.6d02709e138daff6ee92daa60d1ec3a6.js"></script>
        <script defer src="https://musescore.com/static/public/build/musescore_old/index_desktop.89ba6418bed1e2bb362ac34b4e4acf19.js"></script>
                    <script>
    if ('serviceWorker' in navigator) {
        window.addEventListener('load', function() {
            window.navigator.serviceWorker.register('/sw_mu.js').catch(function(error) {
                if (window.UGERROR && window.UGERROR.errors) {
                    window.UGERROR.errors.push(error)
                }
            })
        })
    }
</script>
<div class="js-store" data-content="{"config":{"releaseVer":"mu-web_1.18.71","abVariation":"","abVariation2":"","abVariation3":"","abVariation4":"","staticPrefix":"/static","urlFacebook":"","urlGoogle":"","main_server":"musescore.com","ug_server_name":"ultimate-guitar.com","static_server":"https://musescore.com/static","statik_cache":"_ver1617810612","upload_server":"https://upload.musescore.com","metricaId":46196364,"country":"US","stripeApiKey":"pk_live_0jDVKIBXIeIW27jHu1LWHNy4","is_mobile":false,"captcha_id":"","is_tablet":false,"is_android":0,"is_ios":false,"isGDPRAvailable":false,"isCcpaAvailable":true,"hasStaticCache":false,"app_url":"","isWebp":true,"withSSR":false,"googleOneTap":{"client_id":"129899489146-28hqj8qdpippf2vama0sm48qqiduiovg.apps.googleusercontent.com","login_uri":"https://musescore.com/user/auth/oauth/auth?service=google&onetap=1"},"rtAnalytics":{"trackUrl":"/components/analytics/rt","trackingEnabled":true},"metricaParams":{"login":0,"has_pro":0,"rights":0,"auth":"None","ab":[]}},"store":{"page":{"data":{"authAPIs":{"apple":{"client_id":"com.musescore.signin","redirect_url":"https://musescore.com/user/auth/oauth/auth?service=apple","scopes":"name email","state":""}},"is_pro_auth":0,"is_need_captcha":false,"register_url":"/user/register?gopro=0&destination=%2Fuser%2Flogout","is_webview":false},"template":{"module":"user","controller":"auth/login","action":"index","isUgOffice":0,"isOuterMarkupDisabled":false},"header_bidding":[]},"user":{"id":0,"avatarUrl":"","profileUrl":"","username":"","email":"","usergroupid":"","iq":"","user_status":"","isDebounced":false,"isPro":false,"isNewUser":true,"isStaff":false,"isModerator":false,"isObserver":false,"isUIObserver":false,"isCopyrightManager":false,"emailFlags":[],"daily_user_counter":1,"isRatingDisabled":0,"totalScoresCount":0},"search":{"value":"","activeHubId":"All","hubs":{"ids":[["All","Game of Thrones","Disney","Piano","Film, TV & Video Games","Saxophone","Woodwinds","Marching Percussion","Trumpet"],["Christmas","Halloween","Brass","Percussion","Strings","Folk","Keyboard","Electronics","Voice","Guitar"]],"byIds":{"All":{"id":"All","text":"All","url":"https://musescore.com/sheetmusic"},"Solo Piano":{"id":"Solo Piano","text":"Solo Piano","url":"https://musescore.com/hub/piano/solo-piano"},"Game of Thrones":{"id":"Game of Thrones","text":"Game of Thrones","url":"https://musescore.com/hub/game-of-thrones/"},"Disney":{"id":"Disney","text":"Disney","url":"https://musescore.com/hub/disney/"},"Piano":{"id":"Piano","text":"Piano","url":"https://musescore.com/hub/piano/"},"Film, TV & Video Games":{"id":"Film, TV & Video Games","text":"Film, TV & Video Games","url":"https://musescore.com/hub/video_games/"},"Saxophone":{"id":"Saxophone","text":"Saxophone","url":"https://musescore.com/hub/saxophone/"},"Woodwinds":{"id":"Woodwinds","text":"Woodwinds","url":"https://musescore.com/hub/woodwinds/"},"Marching Percussion":{"id":"Marching Percussion","text":"Marching Percussion","url":"https://musescore.com/hub/marching-percussion/"},"Trumpet":{"id":"Trumpet","text":"Trumpet","url":"https://musescore.com/hub/trumpet/"},"Christmas":{"id":"Christmas","text":"Christmas","url":"https://musescore.com/hub/christmas/"},"Halloween":{"id":"Halloween","text":"Halloween","url":"https://musescore.com/hub/halloween/"},"Brass":{"id":"Brass","text":"Brass","url":"https://musescore.com/hub/brass/"},"Percussion":{"id":"Percussion","text":"Percussion","url":"https://musescore.com/hub/percussion/"},"Strings":{"id":"Strings","text":"Strings","url":"https://musescore.com/hub/strings/"},"Folk":{"id":"Folk","text":"Folk","url":"https://musescore.com/hub/folk/"},"Keyboard":{"id":"Keyboard","text":"Keyboard","url":"https://musescore.com/hub/keyboard/"},"Electronics":{"id":"Electronics","text":"Electronics","url":"https://musescore.com/hub/electronics/"},"Voice":{"id":"Voice","text":"Voice","url":"https://musescore.com/hub/voice/"},"Guitar":{"id":"Guitar","text":"Guitar","url":"https://musescore.com/hub/guitar/"}}}},"notifications":{"countNew":0,"data":[]},"flashMessage":null,"telemetry":{"trackingId":0}},"globalHelpers":[]}" ></div> <script> var isPwa = ( (window.matchMedia && window.matchMedia('(display-mode: standalone)').matches) || window.navigator.standalone === true ); var params = {"login":0,"has_pro":0,"rights":0,"auth":"None"}; params.pwa = isPwa ? 1 : 0;
(function (d, w, c) {
    (w[c] = w[c] || []).push(function() {
        try {
            w.yaCounter46196364 = new Ya.Metrika({"id":46196364,"clickmap":true,"trackLinks":true,"triggerEvent":true,"accurateTrackBounce":true,"webvisor":true,"ecommerce":"dataLayer"});
            w.yaCounter46196364.params(params);

            
                        } catch(e) { }
    });

    var n = d.getElementsByTagName("script")[0],
        s = d.createElement("script"),
        f = function () { n.parentNode.insertBefore(s, n); };
    s.type = "text/javascript";
    s.async = true;
    s.src = "https://musescore.com/static/vendor/metrica/watch_ver1617810612.js";

    if (w.opera == "[object Opera]") {
        d.addEventListener("DOMContentLoaded", f, false);
    } else { f(); }
})(document, window, "yandex_metrika_callbacks");
</script> <noscript> <div><img src="https://mc.yandex.ru/watch/46196364" style="position:absolute; left:-9999px;" alt="" /></div> </noscript> <script> (function(i,s,o,g,r,a,m){i["GoogleAnalyticsObject"]=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,"script", "https://musescore.com/static/vendor/ga/analytics_ver1617810612.js","ga");

ga("create", "UA-11896755-1", {"cookieDomain":"auto"});
ga("send", "pageview");
</script>

        </body>
</html>