Planning to calculate page response time using "Timer Extension" using http://wiki.openqa.org/display/SEL/Timer+Extension.
I have copied the code in "User-Extension.js" and updated the path in Selenium RC.
When I execute following code using eclipse, I am getting following error message "method timerStart(string) is undefined".
System.out.println("Test Strated");
timerStart("LoginPage");
selenium.open(BASE_URL_1);
selenium.waitForPageToLoad(MAX_WAIT_TIME_IN_MS);
timerStop("LoginPage");
How to make eclipse recognize this new method ?
-Bharath
The new method is added to Selenium's prototype. So I think you would have to do:
selenium.timerStart("LoginPage");
Related
I have a symfony project that run normal in command line:
php app/console server:run
But, I want to run inside PhpStorm. When I try to do this, it gives the fatal error:
PHP Fatal error: Class 'RemoteWebElement' not found in
I already tried to look the oficial documentation of the classe:
http://facebook.github.io/php-webdriver/classes/RemoteWebElement.html. But I didn't found information that culd help me.
I also added the compose dependency:
composer require facebook/webdriver
But had no effect!
=======================================
I'll explain step-step how to get this the bug (It will be very long!):
I have:
PHP 5.5.9
PhpStorm 10.0.3
composer 1.0-dev (7117a5775ffdcdfd31bbd52a138a6f9c65e7e3c2) 2016-02-03
So, create a new symfony project (current version 3.0) and add composer dependencies:
symfony new project
cd project
composer update
Then, open this project inside of phpstorm and I configure settings for to run the project:
Settings -> Languages & Frameworks -> PHP
"PHP language level": 5.5
"Interpreter": 5.5.9
Add through plus(+) the PHP folder:
/usr/share/php
Click 'OK'
Now, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10.
Will appear the bug:
PHP Fatal error: Class
'Symfony\Bundle\FrameworkBundle\Test\WebTestCase' not found in
Solve this by this way inside of PhpStorm:
Settings -> Languages & Frameworks -> PHP -> PHPUnit
Choose: "Use custom autoloader"
And, in the field "Path to script", informe the autoloader's address. For example:
/home/murilo/git/slu/app/autoload.php. Click 'OK'.
Again, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10
Will appear the bug:
PHP Fatal error: Class 'Doctrine\Tests\Common\Cache\CacheTest' not
found in
Solve this through this command inside the project folder:
composer require maslosoft/cachetest:dev-master -n --no-progress
For the last time, try to run de project through PhpStorm by the shortcut:
Ctrl+Shif+F10
Will appear the bug:
PHP Fatal error: Class 'RemoteWebElement' not found in
I'm at this bug.
Please, someone knows how I can overcome this bug? o.O
I struggled with the same exact issue as you have described. After breaking my head for most of the day with this problem, I found the issue.
When you execute the command php app/console server:run in command line, it sets up a server and runs the website. However, when you run the project in PHPStorm, it doesn't actually run it as a server but runs it as a PHPUnit. What you need to do is configure a PHP Web Application in PHPStorm and run that.
Check the image below where I have configured the website. When I run the Web Application, it will run by the url and it will show up in your browser.
I have VB project, which is compiling/building perfectly using vb6 IDE in XP mode.
My objective is to automate the deployment process, so am trying to build this project in command line using VBC.
But while compiling vb project in window 7 using VBC.exe and cmd its throwing following error/exception.
Example:
error: BC30203: Identifier expected.
error: BC30481:'class' statement must end with matching end class.
error: BC30617:'Module' statement can occur only at file or namespace level.
Does anybody have any suggestion ideas what am missing here.
Thanks in advance.
I am developing a notepad++ plugin in c++ by using Visual Studio 2013. I put my plugin's dll to the notepad++ plugin directory. When i try to run my plugin in notepad+ menu, it gives "Unknown exception" with window title: PluginsManager::runPluginCommand Exception. How can solve it? Any help is appreciated.
Thanks.
I have not (yet) found a way to replace or to add more details to the "Unknown exception" message, but I do have a workaround.
For exceptions raised at plugin startup I surrounded the PluginBase.SetCommand(...); call with a try...catch...:
try {
PluginBase.SetCommand(...);
}
catch ( Exception ex )
{
Win32.SendMessage(PluginBase.GetCurrentScintilla(),
SciMsg.SCI_INSERTTEXT, -1,
"Exception at startup in <name of my plugin>: " + ex.ToString());
}
I do not recommend this for the final version of a plugin, but it can help with getting the plugin working. My reasons for not recommending it are:
It catches every exception.
It writes the exception message into the
current buffer. It would be easy to not notice the exception message,
to assume that the plugin worked, and hence to corrupt the contents
of the file being edited.
The same technique can be used with the methods called when the plugin is executed.
I work with symfony 1.4, and I want to use the plugin sf sfTCPDFPlugin.
I followed step by step all the instructions, I read the question “How to generate PDF using sfTCPDFPlugin in symfony 1.4?” and answers, but when I try to generate a PDF file, I get the following error:
The server returned a "500 Internal Server Error".
In detail, I have done the following:
I installed PEAR - PHP Extension, and run OK.
I installed
successfully the plugin sfTCPDFPlugin
I downloaded and installed
the "TCPDF library"
$ symfony plugin:publish-assets
$ symfony cc
Copy the /plugins/sfTCPDFPlugin/config/pdf_configs.yml into the config folder of your application
Now I try to test the plugin, but when I want to run the function "test" that is included in the plugin, I get the following error:
The server returned a "500 Internal Server Error":
PHP Fatal error: Class 'TCPDF' not found in D:\proyectos\conflictosnew\plugins\sfTCPDFPlugin\lib\sfTCPDF.class.php on line 14
I use Wampsever under Windows XP
Any idea what could be happening?
I have found an error! The link contained in: "Download the TCPDF library" at: http://www.symfony-project.org/plugins/sfTCPDFPlugin, is incorrect, because download fonts only, not the complete library
In the following link you can find the complete library TCPDF:
http://sourceforge.net/projects/tcpdf/files/
I copied the templates from here to add scaffolding with Twitter Bootstrap thanks to the twitter-bootstrap:2.3.2 plugin.
generates-all works with no errors and creates everything with the look of Twitter Bootstrap.
But I get the next (false?) error:
- Groovy:unexpected token: < # line 1, column 1.
At the next line of code:
<%=packageName ? "package ${packageName}\n\n" : ''%>import org.springframework.dao.DataIntegrityViolationException
This is the Eclipse structure:
If it is just a mistake of eclipse, how could I tell it to ignore it?
My solution so far is to comment out all the Controller.groovy class. The issue is that if I want to use "grails generate-all domain_class" I should remember remuving the comment previously.