Hello all automation Guru!
After the new version of ServiceNow (servicenow.com), I see in ‘Page Source’ just something like the code below. Is there any way to force valid HTML code using Selenium and Chromedriver?
Thanks in Advance.
Alex
<body>
<macroponent-f51912f4c700201072b211d4d8c26010
component-id="yfctzpp"
macroponent-namespace="yfctzpp"
app-id="a84adaf4c700201072b211d4d8c260b7"
global-navigation-config="{
"features": {
"record": {
"_default": {
"experiencePriorityList": [
]
}
},
"list": {
"_default": {
"experiencePriorityList": [
{
"name": "Polaris App",
"sysId": "a84adaf4c700201072b211d4d8c260b7"
}
]
}
},
"search": {
"_default": {
"experiencePriorityList": [
{
"name": "Polaris App",
"sysId": "a84adaf4c700201072b211d4d8c260b7"
}
]
}
},
"inbox":{
"_default": {
"experiencePriorityList": [
{
"name": "Service Operations Workspace",
"sysId": "aa881cad73c4301045216238edf6a716"
},
{
"name": "CSM/FSM Configurable Workspace",
"sysId": "c4e321a3530210102c30ddeeff7b12f6"
}
]
}
}
}
}"
evaluated-data-brokers="{"polaris_user_settings_access_query":[{"errors":[],"executionResult":{"output":{"data":{"GlideUserSettingsAccess_Query":{"userSettingsAccess":{"showApplicationPicker":false,"showUpdateSetPicker":false,"showDomainPicker":false,"showEncryptionPicker":false,"showCryptoModulePicker":false}}}}},"executionTime":1,"parentResourceId":null,"status":200,"sysId":"79c9fd62c7113010099a308dc7c260f1"}],"polaris_app_shell_header_logo_target":[{"errors":[],"executionResult":{"output":{"data":{"GlideHeaderLogo_Query":{"getLogoURL":{"external":false,"target":"gsft_main","url":"now/nav/ui/classic/params/target/$pa_dashboards_overview.do","type":"classic"}}}}},"executionTime":0,"parentResourceId":null,"status":200,"sysId":"b67e4b90c7003010099a308dc7c26094"}]}"></macroponent-f51912f4c700201072b211d4d8c26010>
You can inject JavaScript in the browser with the help of JavaScript executor, which we support.
But you can also use this method to insert the HTML: java - put a string with html/Javascript into selenium webdriver - Stack Overflow
Yes, of course. But how to get HTML from this garbage?