viltgroup / minium Goto Github PK
View Code? Open in Web Editor NEWFramework for browser testing and tasks automation.
Home Page: http://minium.vilt.io/
License: Apache License 2.0
Framework for browser testing and tasks automation.
Home Page: http://minium.vilt.io/
License: Apache License 2.0
Hello I think this project is awesome but I want to know if is possible to import a selenium recorded session and then extends it with Minium features.
Thanks,
Antoni
When you execute a test/s and you push the stop test button, minium continue working.
Button close of help menu doesn't works
Running minion should be easier. Like git clone and mvn run
Loading spinner disappears when ESC is pressed, but it shouldn't because the operation may not be completed yet. Besides, because of that and the bootstrap-modal only allows to toggle the spinner, the next time we toggle for making it disapear, we're actually making it appear.
I have expected the following error trying launch the follow code:
wd = firefoxDriver();
get($(wd), "http://www.google.com");
12:50:40,853 DEBUG ConsoleController - Evaluating wd = firefoxDriver(); get($(wd), "http://www.google.com"); 12:50:40,877 DEBUG ConsoleController - Loading minium bootstrap file 12:50:41,123 DEBUG ConsoleController - Loading extension bootstrap from 'jar:file:/home/jlfuentes/.m2/repository/com/vilt/minium/minium-speech/0.9.0-SNAPSHOT/minium-speech-0.9.0-SNAPSHOT.jar!/rhino/bootstrap-extension.js' 12:50:50,259 DEBUG WebElementsFactory - Found the following resources for com.vilt.minium.DefaultWebElements: 12:50:50,266 DEBUG WebElementsFactory - Javascript: minium/js/jquery.min.js; minium/js/jquery-ui.effect-highlight.min.js; minium/js/debug.js; minium/js/jquery.qtip.min.js; minium/js/jquery.ba-dotimeout.min.js; minium/js/tip.js; minium/js/position.js; minium/js/condition.js; minium/js/filters.js; minium/js/scroll.js; minium/js/jquery.visibleText.js; minium/js/jquery-ext.js 12:50:50,266 DEBUG WebElementsFactory - CSS styles: minium/css/jquery.qtip.min.css; minium/css/tip.css ago 11, 2013 12:50:56 PM com.google.javascript.jscomp.LoggerErrorManager println WARNING: minium/js/jquery.visibleText.js:1: WARNING - Parse error. Non-JSDoc comment has annotations. Did you mean to start it with '/**'?/*!^ ago 11, 2013 12:50:56 PM com.google.javascript.jscomp.LoggerErrorManager printSummary WARNING: 0 error(s), 1 warning(s) 12:51:07,107 ERROR ConsoleController - Evaluation of wd = firefoxDriver(); get($(wd), "http://www.google.com"); failed javax.script.ScriptException: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.vilt.minium.WebElementsException: org.openqa.selenium.WebDriverException: waiting for evaluate.js load failed Command duration or timeout: 10.35 seconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.5.0-37-generic', java.version: '1.7.0_17' Session ID: d28ddcf8-83bc-4ce5-b54c-983e54831d5c Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=23.0}] (#24) in at line number 24 at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:224) at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:240) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264) at com.vilt.minium.webconsole.controller.ConsoleController.doEval(ConsoleController.java:106) at com.vilt.minium.webconsole.controller.ConsoleController.eval(ConsoleController.java:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:176) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:436) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:457) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:722) Caused by: sun.org.mozilla.javascript.internal.WrappedException: Wrapped com.vilt.minium.WebElementsException: org.openqa.selenium.WebDriverException: waiting for evaluate.js load failed Command duration or timeout: 10.35 seconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.5.0-37-generic', java.version: '1.7.0_17' Session ID: d28ddcf8-83bc-4ce5-b54c-983e54831d5c Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=23.0}] (#24) at sun.org.mozilla.javascript.internal.Context.throwAsScriptRuntimeEx(Context.java:1798) at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:196) at sun.org.mozilla.javascript.internal.NativeJavaMethod.call(NativeJavaMethod.java:245) at sun.org.mozilla.javascript.internal.ScriptRuntime.applyOrCall(ScriptRuntime.java:2504) at sun.org.mozilla.javascript.internal.BaseFunction.execIdCall(BaseFunction.java:297) at sun.org.mozilla.javascript.internal.IdFunctionObject.call(IdFunctionObject.java:126) at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:1706) at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:849) at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:162) at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:429) at com.sun.script.javascript.RhinoScriptEngine$1.superDoTopCall(RhinoScriptEngine.java:116) at com.sun.script.javascript.RhinoScriptEngine$1.doTopCall(RhinoScriptEngine.java:109) at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:3161) at sun.org.mozilla.javascript.internal.InterpretedFunction.exec(InterpretedFunction.java:173) at sun.org.mozilla.javascript.internal.Context.evaluateReader(Context.java:1159) at com.sun.script.javascript.RhinoScriptEngine.eval(RhinoScriptEngine.java:214) ... 42 more Caused by: com.vilt.minium.WebElementsException: org.openqa.selenium.WebDriverException: waiting for evaluate.js load failed Command duration or timeout: 10.35 seconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.5.0-37-generic', java.version: '1.7.0_17' Session ID: d28ddcf8-83bc-4ce5-b54c-983e54831d5c Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=23.0}] at com.vilt.minium.impl.JQueryInvoker.invoke(JQueryInvoker.java:142) at com.vilt.minium.impl.ExpressionWebElementsImpl.computeElements(ExpressionWebElementsImpl.java:45) at com.vilt.minium.impl.DocumentRootWebElementsImpl.computeElements(DocumentRootWebElementsImpl.java:32) at com.vilt.minium.impl.BaseWebElementsImpl$2.apply(BaseWebElementsImpl.java:215) at com.vilt.minium.impl.BaseWebElementsImpl$2.apply(BaseWebElementsImpl.java:210) at com.google.common.collect.Iterators$8.transform(Iterators.java:860) at com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48) at com.google.common.collect.Iterables$3.next(Iterables.java:512) at com.google.common.collect.Iterables$3.next(Iterables.java:505) at com.google.common.collect.Iterators$5.hasNext(Iterators.java:597) at com.google.common.collect.Iterators.size(Iterators.java:183) at com.google.common.collect.Iterables.size(Iterables.java:110) at com.vilt.minium.impl.BaseWebElementsImpl.iterator(BaseWebElementsImpl.java:250) at com.google.common.collect.Iterables.isEmpty(Iterables.java:1038) at com.vilt.minium.impl.WaitPredicates$2.apply(WaitPredicates.java:64) at com.vilt.minium.impl.WaitPredicates$2.apply(WaitPredicates.java:62) at com.google.common.base.Functions$PredicateFunction.apply(Functions.java:252) at com.google.common.base.Functions$PredicateFunction.apply(Functions.java:243) at org.openqa.selenium.support.ui.FluentWait.until(FluentWait.java:208) at com.vilt.minium.impl.BaseWebElementsImpl.wait(BaseWebElementsImpl.java:299) at com.vilt.minium.impl.actions.DefaultInteraction.waitToPerform(DefaultInteraction.java:88) at com.vilt.minium.impl.actions.DefaultInteraction.perform(DefaultInteraction.java:214) at com.vilt.minium.impl.actions.DefaultInteraction.perform(DefaultInteraction.java:96) at com.vilt.minium.actions.InteractionPerformer.perform(InteractionPerformer.java:101) at com.vilt.minium.actions.InteractionPerformer.get(InteractionPerformer.java:115) at com.vilt.minium.actions.Interactions.get(Interactions.java:72) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at sun.org.mozilla.javascript.internal.MemberBox.invoke(MemberBox.java:167) ... 56 more Caused by: org.openqa.selenium.WebDriverException: waiting for evaluate.js load failed Command duration or timeout: 10.35 seconds Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.5.0-37-generic', java.version: '1.7.0_17' Session ID: d28ddcf8-83bc-4ce5-b54c-983e54831d5c Driver info: org.openqa.selenium.firefox.FirefoxDriver Capabilities [{platform=LINUX, databaseEnabled=true, cssSelectorsEnabled=true, javascriptEnabled=true, acceptSslCerts=true, handlesAlerts=true, browserName=firefox, browserConnectionEnabled=true, nativeEvents=false, webStorageEnabled=true, rotatable=false, locationContextEnabled=true, applicationCacheEnabled=true, takesScreenshot=true, version=23.0}] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:187) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:145) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:554) at org.openqa.selenium.remote.RemoteWebDriver.executeScript(RemoteWebDriver.java:463) at com.vilt.minium.WebElementsDriver.executeScript(WebElementsDriver.java:209) at com.vilt.minium.impl.JQueryInvoker.invoke(JQueryInvoker.java:125) ... 86 more Caused by: org.openqa.selenium.remote.ErrorHandler$UnknownServerException: waiting for evaluate.js load failed Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '3.5.0-37-generic', java.version: '1.7.0_17' Driver info: driver.version: unknown at .r(file:///tmp/anonymous2804852756116562535webdriver-profile/extensions/[email protected]/components/driver_component.js:8360) at .fxdriver.Timer.prototype.runWhenTrue/g(file:///tmp/anonymous2804852756116562535webdriver-profile/extensions/[email protected]/components/driver_component.js:392) at .fxdriver.Timer.prototype.setTimeout/<.notify(file:///tmp/anonymous2804852756116562535webdriver-profile/extensions/[email protected]/components/driver_component.js:386)
When calling .root() inside an iframe, Minium fails with
java.lang.IllegalArgumentException: WebElements does not belong to the same window / iframe
at com.vilt.minium.impl.BaseWebElementsImpl$1.getJQueryWebElementsExpression(BaseWebElementsImpl.java:74)
at com.vilt.minium.impl.BaseWebElementsImpl$1.apply(BaseWebElementsImpl.java:64)
...
at com.vilt.minium.WebElementsDriver.find(WebElementsDriver.java:236)
at com.vilt.minium.impl.FrameWebElementsImpl$1.apply(FrameWebElementsImpl.java:50)
at com.vilt.minium.impl.FrameWebElementsImpl$1.apply(FrameWebElementsImpl.java:45)
Example expression:
$(wd).frames().find("h1").withText("WELCOME").root():
Selenium Atoms have some interesting logic like checking if an element is shown to the user in a page. Check for instance the function isShown
at:
https://code.google.com/p/selenium/source/browse/javascript/atoms/dom.js
We need to somehow wrap this logic with jQuery so that we can use it as a filter for WebElements. That would allow us to do something like:
$(wd, "div").displayed().find(":text").withLabel("Name")
Note that the visible
method in WebElements
only checks for the visibility CSS style, so it's not a very usable option.
When proxy is enabled in Google Chrome, launching Minium App can result in a Access Denied page.
is there a console.log method? or alert method?
it would be nice to have those.
Add instructions for using different web drivers (like chrome driver or IE driver)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.