What i'm trying to do is get the CSS selector for https://outlook.live.com/mail/inbox?state=0 it is an addon for firefox which will alert how many unread messages you have, currently i have:
div[title="Inbox"] > span:nth-child(3) > span
This works and does not at the same time, if there is 1 unread message it shows as 11 (it adds 10 to it)
Can anyone who uses outlook see if their css selector matches up, appreciated.
Works for me if I use
document.querySelector(`div[title="Inbox"] > span:nth-child(3) > span span`).innerText
Note I added an extra span to your selector
Related
I am currently working on a React application that uses Chart.js. Recently, I have found a new bug when using Chrome: whenever I'm trying to print a page that contains the charts, over 600 additional blank pages are generated.
This happens whether I print using cmd + print or window.print().
It is important that people can print these reports on our application. This issue is currently happening on Chrome, but not on Safari.
Is there any way to set the number of pages being printed, either with CSS or JavaScript?
maybe some property on #media print ?
Your help will be greatly appreciated!
I investigated this issue further.
The v108 Google Chrome update brought issues on Print Preview for many users.
There is a workaround that involves applying this CSS:
.chartjs-size-monitor-expand > div {
position: fixed !important; // cannot stay “absolute”
}
chartjs-size-monitor,
.chartjs-size-monitor-shrink,
.chartjs-size-monitor-expand,
.chartjs-size-monitor-expand > div {
position: fixed !important; // cannot stay “absolute”
}
Source: Hundreds of blank pages and/or disproportion when printing a web page, after chrome version ~103 release (solved)
This fixed my issue! Hope it can help anyone who needs it.
Umbraco uses angularJS as based library and backoffice totally developed on it. The reason telling first is to tell that I have a field on which URL regular expression applied. If someone entered invalid url like below image
it shows error as need.
But if a user try to remove whole text by selecting it and removing at once. It still keep appearing the error like this
However, if a user erase text one by one like this
then the validation error removed and user need to click on button to see error again.
I would to know how screen 3 state can be achievable when user remove all text together? Its really annoying behavior for a user to remove text character one by one to refresh the state of the field. Screen 3 state should be applied on screen 2.
Can anybody tell me how it can fix or achievable? Right now, it seems like a default behavior.
Looking forward to hear from you guys. Suggestions will be much appreciatable.
Regards o
I've looked into this issue. This seems to be a product bug.
When you remove whole text at once, newValue is an empty string and the code responsible for resetting error messages doesn't run. If you have access to the umbraco code, you can easily fix it by removing highlighted check:
Running a test where a dropdown list is selected from. However, after running the first spec, the option tag can no longer be selected. I've isolated each spec to make sure they are working. This issue only occurs when tests are run in succession.
Here is the code I am using to select the dropdown options:
element.all(by.cssContainingText('option', keyword)).first().click();
This is the error that I am receiving after the second test runs:
Failed: Index out of bound. Trying to access element at index: 0, but there are only 0 elements that match locator by.cssContainingText("option", "keyword")
HTML:
<select>
<option>David</option>
<option>Karen</option>
<option>Linda</option>
<option>Charlie</option>
Keyword used: David
It says there are 0 elements on the page which means it is not recognizing the option values. Every test works when run alone, the drop down is able to be selected. This error only occurs when run in succession.
Also I've added browser sleeps to check the console and to see if the dropdown is clickable. There appears to be no errors and when using my mouse, the option tags appear and are also clickable. Also added waits and sleeps to see if it just takes some time for the options to appear. Seems to be an issue with protractor identifying the options.
I am currently using a placeholder field in a matrix to use different colored fonts within the same cell.
Here's a snippet of the expression code that populates the placeholder field (with HTML turned on):
iif(Sum(Fields!Claim_Count.Value)> 0,"<font color = 'Red' size = '4'>● </font>"&format(Sum(Fields!Claim_Count.Value), "#,0"),"<font color = 'green' size = '4'>● </font>"&format(Sum(Fields!Claim_Count.Value), "(#,0)"))
This works perfectly in the preview pane. However, when I deploy to the reporting server, the values come back as #ParseError.
The deployed report will work just fine if I remove the HTML flags. So that's the problem area. Has anyone encountered this before?
It might be a browser error rather than from the Reporting server. Does size need a pt?
Have you tried using SPAN instead of FONT? I vaguely remember something about an issue I had using FONT that SPAN fixed for me.
<SPAN STYLE="font-size:6pt;color:GREEN;">My World</SPAN>
Using DotNetNuke 5.
I am using the EventLogController along with LogInfo to add custom messages to the event logs in dot net nuke.
Within LogInfo we have a method to Add a Property/Value. I am under the assumption that the Controller.AddLog(logInfo) converts the properties & vlaues into XML using the LogInfo->Serialize method for DNN to store it.
My problem is that I want linebreaks in my message. Is there anyway I can add a newline. "\r\n" wouldn't work, wouldn't work, CDATA escaped wouldn't work. Everything gets escaped through the Log function.
How do I pretty print the log message myself?
Regards, V
Sadly, due to the HTML encoding that is done on all messages, you are going to be out of luck trying to do this in the DNN event Log.
Depending on what/where you are, you have a few options.
You can add them as individual detail lines using properties, see my example below.
You could report on something yourself, using a custom log table or something similar
If you are in the context of a Scheduled Job, you can log to that history, which is NOT escaped.
Examples
Log Properties
objLog = new DotNetNuke.Services.Log.EventLog.LogInfo();
objLog.AddProperty("SecureMyInstall", "Phase 2 Error Processing User Accounts");
objLog.LogTypeKey = DotNetNuke.Services.Log.EventLog.EventLogController.EventLogType.HOST_ALERT.ToString();
objLogger.AddLog(objLog);
The content of the logs is displayed as HTML, so you should be able to put <br /> to add line breaks.