現在テレワーク中で、ログインの自動化を行おうと考えました。
url取得まではできますが、肝心のダイアログの要素を取得しクリックしようにも、要素がどれなのかが分かりませんでした。
お時間ある方は、よろしくお願いいたします。
下記にコードを記載します。
コード
<script src="https://us02st1.zoom.us/static/93961/js/app/conference/platform-detect.min.js"></script>
<!--<![endif]-->
<!--[if !IE]><!-->
<script type="text/javascript">
if (!/BlackBerry/i.test(navigator.userAgent)) {
var isBB = /BlackBerry/i.test(navigator.platform);
if (isBB) {
var url = window.location.href;
if (url.indexOf('?') < 0) {
url += '?';
} else {
url += '&';
}
url += "os=bb&browser=bb10";
window.location.href = url;
}
}
var platform = ZoomPlatformDetect();
if (!/iPad/i.test(navigator.userAgent) && platform.device.isIpad) {
if (!/os=ipad/.test(location.href)) {
location.href = location.href + (/\?/.test(location.href) ? '&' : '?') + 'os=ipad'
}
} else if (!/iPhone|iPod/i.test(navigator.userAgent) && (platform.os.isIos && platform.device.isPhone)) {
if (!/os=iphone/.test(location.href)) {
location.href = location.href + (/\?/.test(location.href) ? '&' : '?') + 'os=iphone'
}
}
</script>
<!--<![endif]-->
<link type="text/css" rel="stylesheet" href="https://us02st1.zoom.us/static/93961/css/all.min.css" />
<link rel="stylesheet" type="text/css" href="https://us02st1.zoom.us/static/93961/css/vue/zoom-components.min.css"/>
<link type="text/css" rel="stylesheet" href="https://us02st2.zoom.us/static/93961/css/launch.min.css" />
<script>
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'country': 'jp'
});
</script>
</head>
<body class=" join-frame " data-cd=".zoom.us">
<input type="hidden" id="data_mtg_num" value="" />
<input type="hidden" id="data_mtg_id" value="" />
<input type="hidden" id="data_req_id" value="14189570c82e44b9b421df2c87f49e78" />
<input type="hidden" id="data_is_iframe_verified" value="false"/><input type="hidden" id="data_pwd" value="Z0NLZ0xrSHcyNjZaalQyNW5DZWNMZz09" />
<input type="hidden" id="data_uname" value="" />
<input type="hidden" id="data_wtk" value="" />
<input type="hidden" id="data_uid" value="" />
<input type="hidden" id="data_stype" value="" />
<input type="hidden" id="data_token" value="" />
<div id="header_container" class="">
<div id="header_outer" class="container clearfix">
<div id="header" class="clearfix">
<div class="left">
<a class="imglink" href="https://us02web.zoom.us/" style="margin-left: 10px;">
<img class="logo" rc="https://us02st1.zoom.us/static/93961/image/new/ZoomLogo.png" alt="Zoom Logo"/>
</a>
</div>
<div class="action-btns">
<div style="display:inline-block;vertical-align: top;">
<a target="_blank" style="line-height: 50px;" href="https://support.zoom.us/hc/en-us">Support</a>
</div>
<div style="display: inline-block;padding-left: 20px;">
<ul>
<li>
<div class="dropdown-language dropdown" role="presentation">
<a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
<span>English</span>
<span class="caret"></span>
</a>
<ul class="dropdown-menu pull-right">
<li class="active"><a href="javascript:;" data-locale="en-US">English</a></li>
<li class=""><a href="javascript:;" data-locale="es-ES">Español</a></li>
<li class=""><a href="javascript:;" data-locale="de-DE">Deutsch</a></li>
<li class=""><a href="javascript:;" data-locale="zh-CN">简体中文</a></li>
<li class=""><a href="javascript:;" data-locale="zh-TW">繁體中文</a></li>
<li class=""><a href="javascript:;" data-locale="fr-FR">Français</a></li>
<li class=""><a href="javascript:;" data-locale="pt-PT">Portuguese</a></li>
<li class=""><a href="javascript:;" data-locale="jp-JP">日本語</a></li>
<li class=""><a href="javascript:;" data-locale="ru-RU">Русский</a></li>
<li class=""><a href="javascript:;" data-locale="ko-KO">한국어</a></li>
</ul>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="content_container">
<div id="launch_meeting" class="error">
<div class="launch-section">
<div class="title">
Unsupported Operating System</div>
<div class="error">
Supported Platforms: iPad, iPhone, Android, Windows, Mac and Linux<br/>
Please refer to our System Requirements in <a href="/zendesk/sso?return_to=https://support.zoom.us/hc/en-us/articles/201362023-System-Requirements" target="_blank">Support Center</a>.</div>
</div>
</div>
</div>
<div id="footer_container" >
<div id="footer" class="container">
<div id="footer-links">
<div class="sublinks">
<p>Copyright ©2020 Zoom Video Communications, Inc. All rights reserved. <br/>
<a href="https://us02web.zoom.us/legal">Privacy & Legal Policies</a>
</p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var SB = {
version: '4.0.93961.0511.b4895bb2',
contextPath: '',
baseUrl: 'https://us02web.zoom.us',
baseStaticUrl: 'https://us02st3.zoom.us/static/93961',
loggedIn: false,
fbAppkey: '113289095462482'
};
</script>
<script type="text/javascript" src="https://us02st1.zoom.us/static/93961/js/all.min.js"></script>
<script type="text/javascript">
$.i18n.load({
"common.btn_close": "Close",
"common.btn_yes": "Yes",
"common.btn_no": "No",
"common.title.prompt": "Prompt",
"common.title.confirmation": "Confirmation",
"common.unknown_error": "Unknown Error!",
"common.error": "Error",
"common.enter_time_in_12_hour": "Please enter a valid time in 12-hour",
"jquery.validation_required":"This field is required.",
"jquery.validation_remote":"Please fix this field.",
"jquery.validation_email":"Please enter a valid email address.",
"jquery.validation_url":"Please enter a valid URL.",
"jquery.validation_date":"Please enter a valid date.",
"jquery.validation_dateISO":"Please enter a valid date (ISO).",
"jquery.validation_number":"Please enter a valid number.",
"jquery.validation_digits":"Please enter only digits.",
"jquery.validation_creditcard":"Please enter a valid credit card number.",
"jquery.validation_equalTo":"Please enter the same value again.",
"jquery.validation_maxlength":"Please enter no more than {0} characters.",
"jquery.validation_minlength":"Please enter at least {0} characters.",
"jquery.validation_rangelength":"Please enter a value between {0} and {1} characters long.",
"jquery.validation_range":"Please enter a value between {0} and {1}.",
"jquery.validation_max":"Please enter a value less than or equal to {0}.",
"jquery.validation_min":"Please enter a value greater than or equal to {0}."
});
</script>
<script type="text/javascript" src="https://us02st3.zoom.us/static/93961/js/app/jquery.validate.message.min.js"></script>
<script type="text/javascript">
$.i18n.load({
"join.meeting_preparing":"Your meeting is preparing...",
"join.close_chrome_try_again":"Please close all your Chrome browsers and then re-start the Chrome browser to try again.",
"join.close_firefox_try_again":"Please close all your Firefox browsers and then re-start the Firefox browser to try again.",
"join.close_browser_try_again":"Please close all your browsers and then re-start the browser to try again.",
"join.update_version_try_again":"Please update to a new version, then close all your browsers and re-start the browser to try again."
});
</script>
<style>
.ada-embed-drawer__iframe-container{
max-height: 550px !important;
max-width: 330px !important;
margin: 10px 10px 10px 10px !important;
}
</style>
<script type="text/javascript">
window.zESettings = {webWidget: {}};
window.zESettings.webWidget.chat = {};
window.zESettings.webWidget.chat.connectOnPageLoad=false;
window.adaSettings = {
adaReadyCallback: function (props) {
if (props.isRolledOut === false) {
setTimeout(function(){
try {
document.getElementById('ada-embed').style.display = 'none';
document.querySelector('.ada-embed-button-container').style.display = 'none';
} catch (error) {}
zE(function() {
zE.setLocale('en-us');
var execUrl = /\/j\/(\d+)(\?\w+=[^ ]*)?/ig.exec('\/j/87327245550');
if (execUrl && execUrl.length){
zE.setHelpCenterSuggestions({ labels: ['join_meeting'] });
}
});
});
} else {
zE('webWidget', 'hide');
}
},
authCallback: function(callback) {
var isIE = false;
if (isIE) {
$.ajax({
type: "GET",
url: "/zendesk/chat_jwt",
dataType: 'text',
success: function(response) {
callback(response);
}
});
} else {
fetch("/zendesk/chat_jwt").then(function(res) {
res.text().then(function(jwt){
callback(jwt);
});
});
}
},
hideMask: true,
crossWindowPersistence: {enabled: true,domain: ".zoom.us"},
styles: "*{font-size: 14px !important;}",
language: "en",
metaFields: {
group: "support",
country: "jp"
}
}
</script>
<script async id="__ada" data-handle="zoom" src="https://static.ada.support/embed.js"></script>
<script id="ze-snippet" src="https://static.zdassets.com/ekr/snippet.js?key=f022518e-a528-43eb-b7d9-6af79e1de3db"> </script>
</body>