Where do I define the IEDriverServer path? Is it in the protractor config file? If so, how do I do it correctly?
I've been looking for ages but most solutions seem to give answers for java, i'm using protractor with grunt and node, whenever I run the grunt task I have made for IE or change the capabilities browser name to IE I get the following error in the console/webstorm console:
The path to the driver executable must be set by the webdriver.ie.driver system property;
a search for that usually takes me to an article that guides me to
http://code.google.com/p/selenium/wiki/InternetExplorerDriver
but to be honest that's not much help past downloading the driver, as it doesn't say where, or how, I set that system property.
Hope I'm being clear. Thanks.
The path in question is the environment variable PATH. You can test this by placing the driver executable in somewhere like C:\Windows\System32\ that ought to be in the PATH already, and running the tests.
To add a directory to the PATH, navigate to Control Panel > System > Advanced system settings > Environment Variables and locate Path in the bottom window. Select it and click Edit. Enter the directory here, separating it from the previous directory with a semi-colon. For example, you might add the following to the end of the existing path:
;C:\Drivers\
Related
I have a run configuration in PyCharm with script parameters that take in a directory. Then, I have several directories (a changing number) in my project which I would like to easily be able to run this configuration on. Is there anyway to add an option to the right-click menu of directories to run the configuration passing that directory to the configuration? Or some other method which provides similar accessibility to running the configuration on a directory?
For my specific problem, I have many log directories for TensorBoard (from TensorFlow) and I would like to selectively and easily be able to start up an instance of TensorBoard running on a given directory.
Basically if you would run it in pycharm You can write your own plugin to add some functionality to the IDE. There is a great documentation on how to create plugins in idea/pycharm:
http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html
We have done it before and it was a successful plugin, it really sped up the development processs. :)
I am new to robot framework.
I have put the chromedriver.exe file in the path of system. Now, when I am running scripts in RIDE I am getting this error:
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Is there is any other way of setting path in RIDE itself?
UPDATE: My path variable includes:
C:\Driver\chromedriver.exe;
As mentioned in the Robot framework installation guide,How to set the environment variables.
Place the chrome driver in te path "C:\Python\Scripts" and make sure this path "C:\Python\Scripts" is updated in environment variables.If you have any clarification check the below link.Under the heading Setting PATH on Windows
https://github.com/robotframework/robotframework/blob/master/INSTALL.rst
Download Chromedriver.exe from its official website, extract the .exe file and copy this .exe file in scripts folder of Python installation, e.g. C:\Python36\Scripts
After this, add this scripts path in Environment variable
I'm working on a golang project that has to read files from a sub directory...
When debugging my program it (not sure what it is yet) is unable to locate the files when provided a relative path. Im using io.util.ReadFile(RELATIVE_PATH) for this operation.
This problem doesn't occur when running the program from the terminal.
This has lead me to believe intellij does something behind the scenes debugging/running where it messes with the directory structure (moves it into a temporary location?). If this is the case, how would I go about configuring intellij so that the sub directories are included in the magic or removing the magic so the program is debugged from the directory it lives in.
I'm new to golang/intellij so any help would be appreciated.
Click on "Edit Configurations"
and change the "Working directory" path to where your program should "live in".
I am trying to write a plug-in for selenium UI and following this tutorial. Below is an excerpt from this.
First, what you need is an ‘install.rdf’ file and is located in the
root dir of your workspace
I am not sure what is root directory of workspace here mean. So I have firefox and selenium installed on my computer. Where exactly should I create this install.rdf
The root directory mentioned here is the root directory of the IDE source code. You can download IDE src code from location given below and put the install.rdf in the root.
Selenium IDE src code
Once you have made changes to the plugin src as per your needs. You can build it and install the .xpi hence built to your firefox instance like a regular extension and test it.
Can somebody tell me how I can set the current working directory for a given test? I have a test file test1Test.java and trying to figure out how I can find a file properties menu to edit the current working directory when the test is run?
I'm looking to just right click click on the file test1Test.java to do this but new to Intellij.
Assuming your test is part of a properly configured module, and the test itself is configured to be run by a given junit runner, all you need to do, right-click on the test in the project view and chose the run option. This will create a run configuration with the test name, and you can access that configuration and make sure that the working directory is the module the test belongs to.
You might refer to jetbrain documentation for further details.