0

I have a scenario where when I click the login button, it opens a display (with email & password). But when I try to inspect those text boxes, it shows me the below code.

How can I sendkeys to email & password, as I don't find the web elements at all?

<iframe name="_hjRemoteVarsFrame" title="_hjRemoteVarsFrame" id="_hjRemoteVarsFrame" src="https://vars.hotjar.com/box-21ccaa45726c0f3c8c458f7a87eb2298.html" style="display: none !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important;"></iframe>

<div style="width:0px; height:0px; display:none; visibility:hidden;" id="batBeacon896624525911"><img style="width:0px; height:0px; display:none; visibility:hidden;" id="batBeacon914142038196" width="0" height="0" alt="" src="https://bat.bing.com/action/0?ti=134601210&amp;tm=gtm002&amp;Ver=2&amp;mid=8c1e63e9-f754-4612-8b81-c734f5ee8db3&amp;sid=cb1c7060d06311eca669f938f73a4e43&amp;vid=cb1cd030d06311eca010a3b979e213bd&amp;vids=0&amp;uach=pv%3D8.0.0&amp;pi=918639831&amp;lg=en-US&amp;sw=1280&amp;sh=720&amp;sc=24&amp;tl=Login%20%7C%20World's%20Largest%20Inventory%20of%20Microchip%20Products&amp;p=https%3A%2F%2Fwww.xxxxx.com%2Flogin%3FredirectTo%3D%252Fcart&amp;r=https%3A%2F%2Fwww.xxxxx.com%2F&amp;lt=3927&amp;evt=pageLoad&amp;msclkid=N&amp;sv=1&amp;rn=171798"></div>

<script type="text/javascript" id="">var res=google_tag_manager["GTM-TMJ7S7H"].macro(25);res&&dataLayer.push({event:"gaTriggerEvent2",gaEventCategory:"SearchResults",gaEventAction:"AlternativeResult",gaEventLabel:"\/login"});</script>
1
  • What about refactoring the code to be more checkable? This seems pretty much a horrible HTML for humans, with JS and CSS code inside it oO May 10 at 19:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.