I am using PRIMENG context menu data table. I want to select view and delete option from a context menu in cypress e2e testing framework.
primeng data table :- https://www.primefaces.org/primeng/#/table/contextmenu
As far as I know, Cypress doesn't support right click currently. However, you can try the command below, as a workaround.
cy.get('#nav').first().invoke('trigger', 'contextmenu')
You can now use rightClick()
.rightclick() will not open context menus native to the browser. .rightclick() should be used to test your app’s handling of right click related events such as contextmenu.
Related
Trying to spy SAP system through BluePrism for SAP Automation.
When I click Identify button from BluePrism application modeller and move my mouse over to the T-Code textbox , then the text Box is highlighted using a red color box which says the TCode element is recognize by BluePrism tool in SAP test system. however the same is NOT identified for SAP Production system.
We checked both SAP system has same settings maintained to enable SAP GUI Scripting.
Appreciate help!
I don't know if it solves your specific problem, nevertheless:
Pressing alt multiple times will change the spy method, and you'll be able to find what you're looking for (even a method specifically for SAP).
please check if the SAP Id of the item is the same in both systems. You can do it for example by identifying item in both systems. Please return with the answer what's the difference in ID between the systems.
If you are starting out with SAP Automation in your organisation, you will probably not have GUI scripting enabled in the Production system, but it may be in the DEV system.
If you can access SAP then run RZ11 and enter sapgui/user_scripting then it will show a list of values, and the current value should be true. Compare DEV and PRD. You will probably need the SAP Basis admin to change this.
Read this blog for more details
Andy
For the best SAP automation performance with Blue Prism you need to enable both Client and Server scripting
i. Enabling Client-Side Scripting
Start the SAP Logon and log in to the SAP server.
Click the 'Customize Local Layout' toolbar button (ALT+F12).
Click Options and in the GUI Options screen select the 'Accessibility and Scripting' node
In the ‘Accessibility’ node ensure that the ‘Use Accessibility mode’ option is enabled.
In the 'Scripting' node ensure that the ‘Enable scripting’ option is the only option set. Notifications must be switched off to prevent popups from blocking the spy mode.
NOTE: If the options 'Notify when a script attaches to SAP GUI' check box and the 'Notify when a script opens a connection' are left checked then when you spy an element in the SAP interface you will see the message “A script is trying to attach to the GUI” every time you attempt to click on it. If you see the message “Scripting support is disabled by the user” then the ‘Enable scripting’ option has not been checked.
Save the settings and restart the SAP GUI. The clientside settings have now been set.
ii. Enabling Server-Side Scripting
Start the SAP Logon and log in to the SAP server.
Run the ‘RZ11’ transaction (type ‘RZ11 ‘and click the green tick button)
Type ‘sapgui/user_scripting’ in the Maintain Profile Parameters window.
Click the ‘Display’ button
Click ‘Change Value’ in the Display Profile Parameter Attributes window.
Type ‘TRUE’ in the ‘New value’ field.
Save the settings and log out from SAP Logon.
Exit from the SAP Logon program (click the red cross button in the toolbar, or click the ‘X’ window button to close the window and the application). You may be prompted to save any unsaved changes, if you haven’t done so already.
We are unabel to enable the "Connect to outlook" ribbon button for our external list.
The external list is based on a external content type which uses a simple Web service.
The browser based UI works just great as expected but we are unable to get the "Connect to Outlook" ribbon button to becoem enabled.
We have installed all the necessary client side installs, and the connect to outlook button works fine for regualr lists.
We have mapped it to a outlook type "Contact" within SharePoint designer and mapped the single requried field of "LastName".
Unfortunately it still will not enable, has anyone had this problem or no a fix please?
If you are using a newer version of IE, it most likely won't display. Go to the browsers "gear" in the top right hand corner, click and select "Compatibility View Settings" - click add and then close and refresh, that should do the trick.
I was asked to create a new maint page where data could be added. Just like in the T100 series part1:Maintenance pages. Immediately a few issues arise, why in the Acumatica ERP project I am unable to complete the steps done in the Framework application? I tried to add a new item -> PXgraph option(as described in the instructions) was not available, I couldn’t even add my own c# class from scratch the option was not listed. Instead it just listed page options(will add screenshots below). I attempted to create a new .cs file outside the scope of the project and import it into the file and it wouldn’t recognize it as an available file to import. In the end I attempted to manually drag and drop the file into the Objects folder I wanted the file to be a part of.
VERSUS ERP Add new item
Secondly, I created a new ListView in the page. I was not able to choose my Typename:SO.SOusrPhoneExtMaint.cs file from the list of options. I have rebuilt the project numerous times to see if that was the issue. I manually added the TypeName by going into the source of the aspx and typing it my graph. When I tested the graph I got the following errors that “Invalid type PX.Objects.SO.SOUsrPhoneExtMaint specified for datasource.” My question is why is there a discrepancy between the framework and the erp application for customization and how do I customize the graphs and pages if they don’t take the same approach as the TXX development guides. If I am doing something fundamentally wrong I'd like to know what is the right approach.
I recommend that you use the Customization Project Editor for any customization of Acumatica ERP.
To add a custom form, perform the following actions:
Navigate to the Customization Projects form (SM204505; System > Customization > Manage)
Select an existing customization project or create a new project by clicking "+" on the form toolbar
Click the project name to open the project in the Customization Project Editor
On the navigation pane of the editor, select SCREENS to open the Customized Screens page
On the page, click ADD SCREEN > CREATE NEW SCREEN to open the Create New Screen dialog box
Fill all the required fields and click OK to obtain workable template of your custom form
The New Screen wizard creates the form template and includes it as the following items in the customization project:
two File items - .aspx page code for the new form
a Code item - code template for business logic controller
a Page item - the link to the new page content, which you can further develop by using the Layout Editor
a SiteMapNode item - the site map object of the new form
(For an example see Lesson 11: Creating a Custom Form of the T300 Acumatica Customization Platform Training Guide)
Further you can develop the items by using the tools you prefer.
The custom form will be added to Acumatica ERP after the project is published.
I created a setup file for my project with advanced installer but when i try to uninstall the package from control panel i don't see any dialog showing up telling me that uninstallation is a success, it's just run, uninstalling the application and then close. how can i add a dialog to show after uninstallation process?
I'm using advanced installer 12.3.1 and I'm using a custom theme if that is relevant to the question.
It's because your MSI uninstallation through Control Panel goes in Basic UI mode.
There are several ways to do what you want:
If you need simple end success or failure dialog:
you need to create a custom action which will change INSTALLUILEVEL to INSTALLUILEVEL_BASIC and INSTALLUILEVEL_ENDDIALOG. Please refer these links to find more information about it: MSDN and MSDN
The second way is a trick to hide Uninstall button from Add\Remove Programs and left only Change button. Then you need hide Change and Modify buttons from Maintenance dialog window in AdvancedInstaller (InstallShield, Orca, InstEd, etc). In this case you will receive uninstallation in Full UI mode.
How can I Add a custom Ribbon group to an existing OOB Sharepoint Ribbon tab at run time?
I have a custom web part and I want to add a custom group to Ribbon.Documents Contextual tab at run time.
You need to provision tab definition using custom actions, and then in you server code use SPRibbon.MakeContextualGroupInitiallyVisible and SPRibbon.MakeTabAvailable to show up you tab.
Also you can use CKS.Dev extension for visual studio it contains templates which have some markup and code to help you to start.
You can use Javascript to create buttons. Here is the helpful link
http://www.ro.umt.com/blog/2013/11/14/creating-sharepoint-ribbon-elements-in-javascript/
if you look at the createTab() function you see you can create new group using this function CUI.Group .