Best way to ship selenium with java application? - java

I am writing a java application which has one use: to fill out and submit a form on a webpage (without showing GUI of a browser). I have chosen Selenium for this.
However, how do I "pack" or "ship" Seleniums required browsers with my application? I.e. Selenium requires a browser executable to run the webdriver. I do not know which browser my target audience is using. How do I ship my application to run on any windows clients computer, without requiring them to manually install the browser?
Or am I on the wrong trail and there is a better option than selenium to fulfill my needs?

Related

How to pass value in the screen text fields in a flex application using Selenium Webdriver

I am currently trying to automate a flex application using Selenium Webdriver. The application works on IE 64 bit. I am able to launch the application. But unable to pass value in Login ID and Password field. I have got the object IDs. Could anyone please help me with the syntax to write for this in order to enter the value and login.
Selenium can't handle flex objects, if you want to automate flex application you need to use selenium with other libraries like,
Adobe Genie: https://sourceforge.net/adobe/genie/wiki/Home/
SFAPI: https://code.google.com/archive/p/sfapi/downloads
These are some of the available libraries to automate flex, there are lot more(Flex Pilot, Flex Monkium etc) both open source and commercial softwares available.

Headless Selenium test which fills out a form?

We have a terminal application which serves webcontent via iFrames to our clients.
For some reason, it has been decided that we want to automate the test for this server side. I need to visit a page, fill out a form, and submit it - without actually rendering it in a GUI, I believe a headless selenium driver can do this - but I am new to selenium, does anyone have an example of how to do this in java with selenium?
You can use PhantomJS. Here you can find a working example.

How to open desktop application inside a web browser

Is it possible to open an exe application (Not launch an application) inside a web browser. I want it to be like you have embeded the application in your browser. Is that posible in VB.NET or in JAVA? I have provided the launch application. but my boss wants it to be inside the web browser, not launched by the browser. Thanks in advance
The browser naturally prevents this capability because it would be an enormous security hole. The only way I could see you achieving this is to write some sort of browser plugin or browser extension which would allow you to achieve this but with all of the responsibilities and risks of writing this kind of code.

Does init support apps with Selenium Jars?

Is it possible to embed a Java app that has Selenium code lines into a web browser? Is this supported or not?
I have a Java application that uses Selenium API. I tried to use the init() method to embed the GUI window into a browser so that the application could be launched from a website, however it did not work. Is it supposed to be this way?
Technically you can because the selenium java client is just an java app that interacts with selenium grid in JsonWire protocol.
Take a look at this question Run selenium webdrivers from applet in HTML
No it does not. You cannot launch such an app from a web browser

Selenium WebDriver for Java Applet based websites

I have a website which uses a Java applet. I am trying to automate it using Cucumber & Selenium WebDriver. However, every time I run the website in browser, I get a java security alert (see image), which should be explicitly allowed to proceed further.
Sample image - Java Security alert image
At present, I am unable to proceed beyond this step. Any help would be really appreciated.

Categories

Resources