How to get background color of text in Document element in a windows application in remote desktop - background-color

I am doing test automation for a windows application in a remote desktop. When performing search functionality, the matched text in a Document control type is highlighted, but there is no "BackgroundColor" property displayed in inspect tool or Accessibility Insight tool.
Do you know if there is any way to get the background color of the matched text in a Document control type?
For example, background color of "Info" in an element that has Control Type is Document.

Related

How do you embed images into Acumatica Report hyperlinks?

We are trying to incorporate an image within a link on an Acumatica report.
We are very close to getting the result we need with the 2018R2 version and have a strategy for a workaround in the 2018R1 version.
The TextBox control Is the only way we have found so far that will allow for setting a hyperlink within an invoice report definition. We are able to set a background image in the Appearance/Style/BackImage property. The only way we can get the whole image to be clickable is to have text span the whole control which is fine if we can set the text font to use a transparent color. Setting the Appearance/Style/Color seems to be the property to do this however when the report is previewed the font gets overridden and displayed as the standard Hyperlink color. The behavior when the report is rendered as a PDF via Acumatica’s email delivery system the font appears white. See Images for a visual.
Transparent Text in Report Preview
Transparent Text in Rendered PDF
There looks to be an Appearance/StyleName property for the TextBox control is there an underlying CSS file that can be further manipulated to also control the LinkText properties to display the LinkText in a transparent font? If yes is there any documentation that would help with doing this.
The 2018R1 versions and prior do not render a clickable link within a PDF if the above strategy is used. Per the ticket, I opened last week on the topic the only way to get this link is to have the whole URL on a single line.
PDFs rendered from a invoice definition hosting a hyperlink will not create a clickable link
This makes it a challenge to control the placement of the image to be centered as well as having only the space within the first line as being clickable. We have solved this in a different ERP system by having multiple links overlapping a background image also using transparent font. This required us to set the Z order so that the link controls are rendered on top of the back-ground image. The Acumatica Report Designer however appears to not have the ability to control Z order. Any attempt to place a link overtop of an image does not achieve the result we are looking for. If we can get this strategy to work we will likely also use it for the 2018R2+ versions to keep things consistent.
This screenshot depicts the strategy attempted.
Are there any other strategies to meet this requirement?
Thanks in advance.
For Version 2018 R2:
You can use the TextBox->Style->BackImage property to show the image and the NavigateUrl property to set the URL link. Html mode doesn't display back image but PDF mode will display it fine and the image link works:
For Version 2018 R1:
Unfortunately I didn't find a way to achieve this because I can't get the text to render transparent when it is located over an image.
There is z-order control (bring to front/send to back) in the report designer toolbar and right click context-menu. The problem here is that while the report designer supports overlapping control the report renderer doesn't. If controls are overlapping, when printing the report the overlapping controls won't get rendered on top of another like they are in the designer.
Having overlapping controls isn't really required here because we can display the image with the Textbox Style->BackImage property or with the Report->Style->BackImage.
It's also possible to make text font size bigger so you don't need multiple text box or set multiline=true with textwrap=false and repeat link on each line.
But the main issue remains rendering transparent text over an image. I couldn't find a way to do that. When there's an image under the text, the text is no longer transparent. That behavior happens for the textbox background image as well as the global report background image. This suggests to me that it might not be possible to put transparent text on top:

Acumatica: Report Design Different When Printed

I noticed that the report's designs preview and printed are different.
I found it that all of the reports are the same.
So I tried to create new test report and notice that background colors are not rendered on print.
How too keep the design when printing?
Design:
+++
Printed:
By default Reports are rendered in HTML mode. As is often the case with HTML, the report as seen in the browser uses a different CSS style then the one sent to the browser print dialog. I'm pretty sure the reason for this is to accommodate printer technology. Printing solid dark backgrounds uses up a lot of ink and text is more legible when it's black text over a white background.
With HTML rendering, browser view and print preview differ to accommodate printer limitations:
HTML was never meant for accurate rendering anyway so I think the CSS change is for the better but if you want exact result just switch to PDF mode which is meant to provide accurate rendering. Print preview should match very closely the PDF rendering in browser when the report is displayed in PDF mode:
It can get tiring to manually switch to PDF each time by clicking the rendering mode button so you can change the default mode in the report configuration:
It is also possible to edit your custom reports or the standard ones so they default to PDF rendering in the browser instead of the current HTML default:
To edit report you will need to install Acumatica Report Designer (it is in Acumatica ERP Windows Installer) and use the EDIT REPORT button and then use Save to Server file menu item in the report designer to save the report modifications:
Have you checked the Background Graphics checkbox in the printing dialog of your printing preview program? It's primarily in the More Settings section.
Please find below example for Google Chrome's dialog:

I have entered input but clicking on submit is again asking for input when running an automation through blue prism for browser based application

I am working on one web application. I am entering input in the text box, but when I click on Submit, I am again prompted to enter the input. How can I focus on the textbox or do a left click on the textbox before entering the text? I am trying to do this through blue prism.
Sometimes a web page can have Javascript code that detects keyboard events, and if it didn't detect any, it might think there's no input. Assuming that you have entered the input using a write stage before, you might need to use the Global Send Keys or Global Send Key Event actions instead (they should be available in the Navigate stage, and you use them on the TOP level element of the application model). Please note that prerequisites:
-The browser window will have to be active (Activate Application on the Win32 browser window element)
-The textbox should also be active (Click Centre on the textbox element)

How to change the behavior of hyperlinks in generic inquiries

In Generic Inquiries, I've noticed that certain fields automatically have hyperlink functionality to open specific screens. I'm not sure what determines what screens these open (I'd imagine its based on whether its a key field for a maintenance table/DAC, etc.) - but I've also noticed that the manner in which it opens a screen is different for different fields / field types. Some open a popup with no menu, others open in the same screen space as the Generic Inquiry, and in doing so replace it in the browser.
My question is this: Is there a way to modify, in the GI setup, the manner in which it opens the screen so that it always opens as a replacement instead of a popup window?
If I remember correctly, with Acumatica ERP ver. 6.0 on the Generic Inquiries' Navigation tab there was added Window Mode drop-down to configure how the screen is opened from hyperlinks in a given GI:

where is layout of source

if i want get root view,i also by call getWindow().getDecorView().findViewById(android.R.id.content) or findViewById(android.R.id.content).getRootView().so i want to know if i can find the layout of android.R.id.content. could you tell me where is the layout.you can give me a link or other.thanks
You can use Hierarchy Viewer tool, See the definitons and Steps of how to use this tool in developer guide as shown below,
It shows visual representation of the layout's View hierarchy (the Layout View) and a magnified inspector of the display (the Pixel Perfect View).
To get the Hierarchy Viewer started:
Connect your device or launch an
emulator. From a terminal, launch
hierarchyviewer from your SDK /tools
directory. In the window that opens,
you'll see a list of Devices. When a
device is selected, a list of
currently active Windows is displayed
on the right. The is
the window currently in the
foreground, and also the default
window loaded if you do not select
another. Select the window that you'd
like to inspect and click Load View
Hierarchy. The Layout View will be
loaded. You can then load the Pixel
Perfect View by clicking the second
icon at the bottom-left of the window.
If you've navigated to a different
window on the device, press Refresh
Windows to refresh the list of
available windows on the right.
Now with the help of this tool, it shows the content is in Frame Layout, pls refer this output given by this tool.

Resources