How to cause standard dialogue of properties of service? - delphi

(Example: start services.msc, click 2 times on any service)
If it is possible an example on delphi, please

David is probably right ;-) In any case, whatever you want to do with services programatically will probably involve the use of the Service Control Manager API
http://msdn.microsoft.com/en-us/library/ms684323%28v=vs.85%29.aspx
and here's another SO question that might help you further
How can I disable a service via Delphi?
and here's some old code that gives you a head start
http://www.swissdelphicenter.ch/torry/showcode.php?id=1322

As far as I am aware, there is no official programmatic way to show the services control panel UI to the user.
Consequently I believe that you must look for another solution.

Related

Using WinAppDriver to automate TcxVerticalGrid

I'm trying to automate a WinForms application that contains a TcXVerticalGrid control. I'm able to access the control using the FindElementByXPath method, but I cannot figure out how to get access to the rows within the component. The component is used like a property grid, where each row has a property name in the left column and an editable value in the right column. I'm trying to figure out how to move the the correct row based on the property name, and then edit the corresponding property value.
I've tried using WinAppDriverUIRecorder.exe tool as well as Inspect.exe, neither of which were able to provide much insight. I've searched Developer Express for answers, but I wasn't able to find anything. One blog post said that they had no plans to support Microsoft's UI Automation api, while another said that they did support WinAppDriver. I'm not sure what technology Appium uses to access Windows controls, but it seems like Developer Express components might not support that technology.
I don't have much experience with Appium or WinAppDriver, so any advice would be helpful. I am able to automate the application with TestComplete, however, it's only possible with their Open Application technology. I've also tried FlaUI, but I wasn't able to get that to work with this component either.
Is it possible to automate this component with Appium, or should I look for a different technology?

Spectron available methods doesn't work properly

I'm using spectron on webdriverIO and try to avoid client.pause() method to wait and used client.waitForExist, waitForWindowLoading, waitUnitlText but the application closes very quick and I don't want to pass the implicit wait
can someone guide me towards the right direction to achieve it?
Many thanks in advance
I think you can not use webdriverio apis directly. You may have to be using the apis from Spectron which are listed in the below link.
https://github.com/electron-userland/spectron#clientwaituntilwindowloadedtimeout
Here is another link.
https://github.com/eostrom/spectron/blob/webdriverio-5/test/commands-test.js

SpawnDomUri: Restrict to specific Dom-Node

I want to start some Isolate, which manipulates a specific area in my webpage.
To achieve this, I create such an Isolate via the function SpawnDomUri, which is able to access the DomTree.
Apparently, some malicious/erroneous Isolate may change the whole webpage, which may not be desirable.
So my question is:
Is it possible to restrict the access of a Dom-Isolate ( which is started via SpawnDomUri ) to a specific Dom-Node ( incl. ShadowRoots )?
Best Regards,
Alex
I don't think this is possible. I once saw an experiment from MS to try and allow this sort of sandboxing; but I don't believe it's something any major browsers have ability to do today.
Most people tend to use iframes to isolate them in this way (rightly or wrongly!).
The only solution that comes to my mind is to use a non-DOM-Isolate and expose an API on the root isolate that can be accessed by sending messages that only exposes/executes allowed invocations.
This is of course very cumbersome but as Danny said there is no direct support for your requirement.

Vicidial direct call in my web app

I need to implement direct call feature via vicidial in my web application.
Let me explain the flow to better understand what I need to do. user would be able to login in vicidial via a webpage of my app. then can call on any number by entering number.
Is there any doc or wiki available to implement this feature. Guidance in simple steps would also be appreciating.
Thanks in advance :)
We implemented something like that using a product called WombatDialer that offers good APIs and is quite easy to set up (well, easier than ViciDial).
See http://www.wombatdialer.com/manuals/WD_UserManual-chunked/ar01s08.html for an API reference.

Saving & Restoring Connections with XIFF

I'm modifying a piece of JavaScript code that uses XMPP + XIFF flash object to communication with MSN/Yahoo/GTalk via Jabber.
The requirement of the web site is to enable page refreshes.
However, the problem is the current implementation of XIFF does not allow saving and restoring of connection, but requires a new login every time, which is time consuming.
I wasn't able to find any reference to such a solution.
Does anyone know if:
This is at all possible with the XIFF open source code?
Any reference to such solution - might consider JavaScript solution as well.
Thank you very much!
Ofer Bar
I do not believe this is possible. Standard work-arounds are to either have a separate window, or some form of IFRAME which acts as such.

Resources