openfin / hello-openfin-selenium-example

Example of test code with Chrome Driver on OpenFin Runtime
MIT License
12 stars 13 forks source link

Openfin automation with selenium #1

Open abhimohit88 opened 7 years ago

abhimohit88 commented 7 years ago

I have one openfin application and I want to automate that application. i m using below steps : 1- open chrome driver and open a chrome blank browser 2- launch the openfin application 3- use driver method to identify the objects in the application.

I want to know if I m doing anything wrong because I m not able to identify any objects

Do I need to change anything in the json file before running the 2nd step

wenjunche commented 7 years ago

Hello

Please take a look at Guidelines in README of this project about calling ChromeOptions.setBinary with RunOpenFin.bat. By default, ChromeDriver starts Chrome browser. Your code needs to override the default behavior by calling ChromeOptions.setBinary. RunOpenFin.bat launches OpenFin RVM and Runtime, instead of Chrome browser.

This repo has examples for 3 different Javascript Selenium bindings. Please take a look at the one that matches your test case and let us know if you have any questions.

Thanks Wenjun

abhimohit88 commented 7 years ago

Hi Wenjun,

Thanks for your quick reply.

I have couple of concerns:

1- I m using robot framework with python , is it possible to automate openfin with this framework

2- I checked with my developer and they are saying that they don't use openfinRVM in development of my application.

I have tried to refer the repo but I m getting an error as "" chrome not reachable"" which indicates that my debugging port is not set properly and my application is using no sand

wenjunche commented 7 years ago

Hello

I don't have any experience with Robot. It looks like there is a Selenium2Library library for the framework. I think as long as you can pass remote_debuging_port to OpenFin Runtime properly, it should work.

Without using OpenFinRVM, how do your developers pass remote_debuging_port, generated by ChromeDriver, to OpenFin Runtime ?