Unable to load the Selenium jar file in the common file
I am working on automating one of the web module of windows based Application.
Windows client has automaleted scripts in the sikuli ide. There is a common file which has all the functions which are called quite often by various modules(Web and win).
I have been able to import the selenium jar file and automate a few web modules. In each folder of the webmodule test case I have to add the selenium .jar file , which isn't very efficient way of doing things.And also there is a lot of redundant code in the files e.g the following lines have to be added in all the web module test cases :
l
load("selenium-
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import org.openqa.
import java.util.
import java.util.Arrays as Arrays
import java.lang
import java.lang.System as System
options = CO()
capability=
System.
capability.
capability.
options.
options.
driver = CD(capability)
driver.
I wanted to move the above code into the common file.
Unfortunately I cant do that without moving the selenium jar file in the common folder as well.Not only that I have to move the Selenium jar file in all the modules' folders which are using the common file regardless of them being web based or windows based.and we have 100's of folders with the sikuli script. It wouldn't be wise to move the selenium. jar to all of those folders.
I wonder why does it have to be this way? Is this a bug related to sikuli ? Or was it by design :D
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Maria Haris
- Solved:
- Last query:
- Last reply: