selenese-runner-java | Selenium IDE native format interpreter | Functional Testing library
kandi X-RAY | selenese-runner-java Summary
kandi X-RAY | selenese-runner-java Summary
This is selenese script interpreter implemented by Java. It supports test-case and test-suite which are Selenium IDE’s native format (selenese and side). Note: Supported Java version is 8 or later.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Evaluate mouse event
- Calculate the offset of the element
- Converts a coordinate string into a Point object
- Calculates the offset of an element inside an element
- Create a new WebDriver instance
- Sets the proxy configuration
- Sets the capabilities for a RemoteWebDriver
- Converts a side command to a side test command
- Escape a JavaScript string
- Executes the command line arguments
- Execute FORACHED state
- Executes the pop up
- Normalizes the space characters in a string
- Executes the given script asynchronously
- Render an object
- Loads JavaScript functions from an input stream
- Executes the test case
- Finds an option
- Handle interactive mode
- Executes the getter method
- Returns a string representation of this driver
- Perform a click on the element
- Executes the file passed as parameter
- Invoke an ICommand
- Executes the input
- Get the expanded commands
selenese-runner-java Key Features
selenese-runner-java Examples and Code Snippets
Community Discussions
Trending Discussions on selenese-runner-java
QUESTION
TL;DR: I have a requirement for distributing business logic at runtime between a server and multiple remote clients running Selenium WebDriver .
I have looked at object serialization, RMI, downloading JARs on-the-fly, Selenese through Java and Selenium Grid.
Detail: Multiple remote clients are expected to poll a queue via JMS over the Internet to obtain an Order to go do some work on a given website. Each client will start Selenium WebDriver, traverse through that website in a manner that is not pre-defined (or only in very abstract terms) prior to client runtime, then go back to polling the queue until called again.
The challenge is that neither the website nor the exact traversing steps will be known to the client in advance. I can define the abstract steps / methods in advance on the server but the client will depend on some kind of downloaded data to obtain the list of Selenium commands precisely. There is also some looping required in those steps (repeat until...
).
For instance, if we define void login()
for example1.com:
- Click 'username' field
- Send keys 'username'
- Click 'password' field
- Send keys 'password'
- Click 'submit'
Whereas for example2.com void login()
would be:
- Click 'login' box
- Wait for 'username' field to appear
- Click 'username' field
- Click 'continue'
- etc.
Researched:
- Serialization: Will transfer only object variables, not object logic.
- RMI: Object logic is executed on the server, not the client, so it cannot interact with the client's Selenium instance.
- Downloading JARs on the fly: Possible solutions here and less optimistically here. Are these realistic?
- Selenese: Probably cannot be run directly under Java. Might be possible with selenese-runner-java but this appears to be command-line only, which would limit interaction with client software and therefore functionality
- Selenium Grid: Node (client) must be connected to Hub (server) at all times, which cannot be guaranteed
How can I distribute business logic from server to client at runtime in this way?
...ANSWER
Answered 2019-Apr-05 at 12:49You can declare an interface SeleniumRunner
with a generic Selenium run method like that.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install selenese-runner-java
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page