0

I am quite new to WebDriver and Java so pardon if my jargon is elementary.

I just automated a data entry task using WebDriver for InternetExplorer. The task simple just logged into a database, pulled information from an Excel sheet, and inputted the data to corresponding fields.

I want to share this with my coworkers. Is it possible to create a program, a .exe, with a simple interface that anyone, regardless of programming knowledge can use? If so can you point me in the right direction?

Also, is it possible to make the Internet Explorer Browser not appear on the screen, but run in the background.

Thank you.

ekostadinov
  • 6,880
  • 3
  • 29
  • 47
Picheal Naver
  • 73
  • 3
  • 9

2 Answers2

0

You can use swing and create runnable jar.

The easiest way to hide the browser is to install PhantomJS. Then, change this line:

driver = webdriver.Firefox()

to:

driver = webdriver.PhantomJS()

Also you can check GhostDriver.

Check this: How to run ghostdriver with Selenium using java

Community
  • 1
  • 1
CyberTR
  • 71
  • 3
  • 13
0

You can use HtmlUnit Driver to run tests without GUI. Refer selenium documentation

WebDriver driver = new HtmlUnitDriver();

You can build your project as jar along with dependent jars, others can use this jar to run tests.

anil
  • 26
  • 4