Handle windows Alert..(electron base desktop application) in selenium web driver - selenium-webdriver

I am automating desktop application. The application is base on an electron so I can easy to get XPATH and other things like a web application. But I am stuck on windows alert.
I am trying a robot class. but a key event not supporting in electron base application.
robot.keypress(keyevent.vk_enter)
robot.keyrelease(keyevent.vk_enter)
I am trying normal selenium web driver code to handle pop but selenium does not support windows popup.
I am trying to AutoIT tools. with this code
ControlFocus("petpooja","","Button1")
ControlClick("petpooja","","Button1")
and this code
SEND("{ENTER}")
With this code
Runtime.getRuntime().exec(".\\Driver\\autoitpath\\EnterPopUp.exe");
I am also trying to use Sikuli but that also not supporting.
public Screen s = new Screen();
s.click("./Driver/Image/Popup.PNG");
Please help me guys on this I also attached the image please refer to this?enter image description here

Related

Embed a program GUI into a Web interface

I have a program (an executable with native GUI) and I want to view its GUI into a React js Web page.
I need something like an iframe that shows the GUI of a software that runs server-side.
Could anyone tell me if this is possible?
Thank you in advice,
Giacomo

Winappdriver and selenium in the same automated test

Hi I could do with some help / more experienced eyes.
I have a WPF application which I have started automating some UI tests for using winappdriver, upon further investigation it has embeded html in it - webview, and can fire off requests to open the default browser with app related content - such as help files.
Has anyone had experience in working with this? For example:
open the WPF app,
click on help button on the WPF app which will open a browser and
then continue the test to ensure that the correct help page has been launched with the correct content in relation to the WPF page it was fired from.
Presumably this can be done in my case with chrome driver (winappdriver cannot see the content on the webpage). I have tried using selenium's window handles, but it's like the driver can't see the already open browser page. So I am at a bit of a loss and really not sure what to do.
In previous roles I was used to using Ranorex, which does both windows and web based UI automation. So I have never had any experience using multiple driver types to do the one test.

Chromium embedded within WPF app with webdriver attached

I have quite unusual problem. I would like to embed Chromium inside WPF desktop app in a way that it has webdriver attached to is so I can execute operations from selenium against that embedded browser from the same application.
In other words, I would like to be able to control this embedded browser from the application using selenium (navigate, select elements, wait for elements, etc..)
From what I have found so far, it is possible to attach to CEF (cefsharp or cefglue) using webdriver but it spawns new process for the browser from external executable which is not what I'm looking for.
Is it possible to run cef inside WPF application with selenium in described scenario ?

How to automate a Silverlight based web application using selenium?

I am trying to automate a web application using selenium, however that application is developed using Silverlight. Hence, i am not able to inspect the elements in the web page. Could anyone please suggest on how to tackle this problem?
Out of the box, selenium won't natively support testing a Silverlight-based web app. There is https://code.google.com/archive/p/silverlight-selenium/, but it doesn't look like that project is currently being maintained. Beyond that, Silverlight itself is not longer under development, and it won't run on recent versions of Chrome or Edge (or Android or iOS).

communication between silverlight plugin and mvc project without using WCF

I just need a help regarding the communication between the silverlight plugin which uses webcam and gives response to the mvc application.I just need the breakpoints to be hitted on the silverlight project run mode that are not hitting for the moment.
Any help will be highly appreciated..
On Solution Explorer of Visual Studio right click on your web project and select Properties. Go to the Web tab. In the bottom under Debuggers check Silverlight checkbox. After that you can debug your Silverlight application.

Resources