I am confused about Selenium::Remote::Driver's working.
AFAIK, we need to run selenium server jar file (even if browser and perl program are on same machine) to automate browser. However webdriver (if we use Java or other bindings) does not need server to be running.
The documentation clearly states:
To use this module, you need to have already downloaded and started the Selenium Server (Selenium Server is a Java application).
So my question is: Does Selenium::Remote::Driver implement selenium RC? Can we not implement webdriver APIs using perl?
or
APIs mentioned in Selenium::Remote::Driver are webdriver APIs?
After some more research, I think I found the answer.
I found Selenium::Firefox for firefox and similar modules for chrome also.
Now I do not need to use server instance. So Now I came to know that Selenium::Remote::Driver APIs are webdriver APIs.
I got to know this from this link.
Related
I've started working with delphi quite some while ago but I would say I'm still a newbie in all this.
So basically I tried creating REST Server, which can validate license keys. I got in working with Indy, but one thing bothers me. The GUI. The Server shouldn't have any kind of gui so it can work on any OS (Win, Linux, etc). Is there a way to make a REST Server without any GUI/FMX/VCL?
BTW: Working in Delphi 10.2.3 Professional.
Any advice is appreciated.
EDIT: I forgot to mention one thing: the server is supposed to run on an independent Data Center away from any user.
You can create the WebServer as a Windows Service.
You can use DelphiMVCFramework or any other Framework to create it.
With DMVC you can create console application, Windows Service, Linux daemon, Apache module (Windows and Linux) and IIS ISAPI (Windows).
With Intraweb you can also create Services.
Take a look at our mORMot Open Source REST framework, which works on Delphi but also on FPC/Lazarus.
FPC support ensures that you can target Linux with this free compiler. No need to upgrade to a newer version of Delphi Architect, which supports Linux, and is very pricey - and less stable (to my knowledge) since Linux support is quite new.
As you requested, the mORMot REST server has no UI part. You define your services as interface and class - like you do e.g. with DotNet - and you will have full JSON/REST support generated.
mORMot is used on production since years for very high performance and stability, hosted on both Windows and Linux. A version 2 is on its way, which would be even easier to use for new projects.
And you can create a Windows service or Linux daemon without using any third party framework. Delphi include everything you need. However, it is possible that third party framework will facilitate your programming. Don't forget you'll have to learn those third party framework.
Creating a Linux daemon service in Delphi
Creating a Windows Service in Delphi
In both cases, you can use the sample code you've found that make use of TIdTCPServer.
Is there anyone that has done a java interpreter using groovy-all jar file? Maybe sample or example can share it to me or teach me? I meant a interpreter that can parse string(java code) into the textarea and output it as a result like(hello world)
As you need some sample code to implement a web-console using groovy-all.jar, it would strongly recommend taking a look at Groovy Web Console.
Although it's not exactly a Java EE / Tomcat app and it is fairly similar as its a standard Java Servlets API 2.5 based web app. It runs on Google App Engine, which you can try out here. All you need from it is the script execution logic which for most of the part is not app engine specific. Keep in mind, it has dependencies on GAE Apis (through Gaelyk) so you should prune that part out of it to run in it outside Google App Engine.
I found many questions about same issue in Stackoverflow. But could not find any satisfactory answers.
My problem is:
I have to run "iperf client" in client machine(assuming windows) using command line in client windows machine and get the statistics.
Currently my server is written in PHP(I am ready to shift to any platform) given that I shall be able to run iperf command on client machine.
I searched and found that, Java applet, ActiveX control or Plugins(like Google Talk plugin). Can someone suggest me the best and easiest approach here(with some reference links if possible).
You cannot run an arbitrary command on the client side using Native Client. What you can do is invoke Pepper API functions from your extension. Another thing you can do is access the Chrome extension API from Javascript. If none of these have the information you need, feel free to suggest new features on the native-client-discuss mailing list. Note that invoking "any Windows command" cannot be reasonably made part of a client-side application, due to security issues.
Which one should I use for a new project?
What is the difference between them?
Both require the Selenium java-based server to be running (as far as I can manage anyway).
WWW::Selenium uses the older v1 protocol, but has more infrastructure surrounding it. The v2 Selenium server is backwards compatible.
::Driver uses v2 protocol and is newer.
There are differences between v1 and v2 interfaces but the basic idea is the same in both.
So - in summary - not a huge difference between them. I don't think you'd regret your choice whichever you picked.
The main difference between Selenium 1 and Selenium 2 (aka Selenium RC, Webdriver respectively) is the way they drive the browser:
Selenium RC injects javascript to drive the browser while webdriver uses the browsers build in automation capabilities. What this means is that if you are using webdriver PLUS either the C# or Java bindings for example, you will not need the Selenium Server (unless you're not running your tests on the same machine as the browser).
As an FYI, the Selenium-Users as well as Webdriver groups in Google are great resources with an active community of participants. Most questions get answered there relatively quickly. Links below:
Webdriver Google group
Selenium-Users Google group
I'm using selenium webdriver to test our website. We also have a browser plugin/extension that we'd like to test in the same way. As far as I can tell there isn't any way to test the installation of a plugin using webdriver. Is there any way to do it with webdriver? If not how might I go about automating testing installation of the plugin?
So it seems firefox and chrome will both allow you to register extensions using webdriver capabilities.
Here is the documentation for
Firefox: https://code.google.com/p/selenium/wiki/FirefoxDriver#Running_with_firebug
Chrome: https://code.google.com/p/selenium/wiki/ChromeDriver#Chrome_Extensions
No support unfortunately, but this is a very good start.