selenium-rc

OperaProfile object and Selenium RC (C#)

爱⌒轻易说出口 提交于 2020-01-07 04:48:12
问题 I'm try to use selenium-server-standalone-2.33.0.jar with opera and need to change some profile preferences. It possible to create OperaProfile object in C# project and using it like this: OperaProfile profile = new OperaProfile(); // Error: Type or namespace 'OperaProfile' could not be found profile.preferences().set("User Prefs", "Ignore Unrequested Popups", false); DesiredCapabilities capabilities = DesiredCapabilities.Opera(); capabilities.SetCapability("opera.profile", profile);

SELENIUM: how to check if a particular text is present in a particular attribute of HTML tag

拜拜、爱过 提交于 2020-01-06 14:18:16
问题 I have a HTML tags: <a href="rid=7059"> abc </a> <a href="pid=8059"> fgh </a> <a href="cid=9059"> cxq </a> HOw do I check if a particular tag exists with the href attribute containing rid (First tag in the above example) get_attribute() gets the value of a specified attribute but how do i check when in a page any such tag exists whose attribute value is rid ? Thanks for the help. 回答1: You didn't mention the language you are using, so from personal preference I'm assuming Python. Other

Fiddler doesn't capture traffic from Chrome

筅森魡賤 提交于 2020-01-06 07:09:31
问题 Here is what I have to do : Open a url in IE/Chrome/Firefox browser. Do some UI user action (click/submit). Record http request for a particular http call. Here is what I did: console application + selenium RC to open url & do the user actions + Fiddler Core to capture that http traffic. My code works fine when I'm running it in Firefox & IE, but don't know why Fiddler Core not able to capture any http traffic when running it against Chrome. ISelenium selenium = new DefaultSelenium("localhost

Selenium Grid Demo Test cases fail

假如想象 提交于 2020-01-06 05:36:09
问题 I am using selenium grid for automated testing. I have followed the official documents to install the grid. But after running the run-demo-in-parallel, the test casses fail with the following error in the target folder. Parameter #1 Parameter #2 Parameter #3 Parameter #4 localhost 4444 *firefox http://images.google.com **Could not contact Selenium Server; have you started it on 'localhost:4444'** ? Read more at http://seleniumhq.org/projects/remote-control/not-started.html Connection refused:

Selenium RC - selenium-browserbot.js error

人盡茶涼 提交于 2020-01-06 03:27:06
问题 I'm writing some automated tests in C# and a JavaScript error is thrown when I try to click on a button that will submit changes made to a web form. The error I am recieving is: An error has occured in the script on this page Line: 2004 Char: 9 Error: Permission denied Code: 0 URL: file:///C:/DOCUME~1/nkinney/LOCALS~1/Temp/customProfileDir6c0c7d7226cc463fb­b1a7f6253c4df62/core/scripts/selenium-browserbot.js Once the test is finished, the error will still be displayed if I manually click on

Removing comment in ini file writen by ant when updating the ini file

南楼画角 提交于 2020-01-05 08:12:12
问题 I have an ant file which updates the data in ant file due this ini file gets updated and at the top it has a comment as follows #Thu, 07 Jul 2011 06:54:54 -0500 I don't want this comment as i am accessing this file by php using parse_ini. Due to this comment i get an failure Comments starting with '#' are deprecated in build.ini on line 1 so is there any way so that i will not get the comment in ini file. Thanks. EDIT: <propertyfile file="build.ini"> <entry key="build-number" type="int"

phpunit selenium usage

别说谁变了你拦得住时间么 提交于 2020-01-04 13:11:36
问题 My question is about phpunit+selenium usage. The standard usage of this union is class BlaBlaTest extends PHPUnit_Extensions_SeleniumTestCase {... } OR class BlaBlaTest extends PHPUnit_Extensions_Selenium2TestCase {...} The first one ( PHPUnit_Extensions_SeleniumTestCase ) is not very convinient to use (e.g. there is no such thing as $this->elements('xpath') ). Second( PHPUnit_Extensions_Selenium2TestCase ) also has limited functionality (e.g. there is no such functions as waitForPageToLoad()

Selenium - how to turn on firebug with console, script and net

…衆ロ難τιáo~ 提交于 2020-01-04 07:18:31
问题 I have set up a custom firefox profile and load it when selenium RC starts. The profile has firebug installed, and when I manually launch firefox with that profile, firebug is active. However, when selenium launches that profile, firebug is in the lower right, but it is not enabled. How can I ensure it is enabled at launch? OR, how can I enable it (javascript or ?) - I am using the Java API. 回答1: The way to do that is to open Firefox using your custom profile. Right-click on the Firebug icon

Selenium - how to turn on firebug with console, script and net

匆匆过客 提交于 2020-01-04 07:18:01
问题 I have set up a custom firefox profile and load it when selenium RC starts. The profile has firebug installed, and when I manually launch firefox with that profile, firebug is active. However, when selenium launches that profile, firebug is in the lower right, but it is not enabled. How can I ensure it is enabled at launch? OR, how can I enable it (javascript or ?) - I am using the Java API. 回答1: The way to do that is to open Firefox using your custom profile. Right-click on the Firebug icon

Running Selenium IDE tests via Selenium Grid

做~自己de王妃 提交于 2020-01-04 02:34:12
问题 I should start off by saying that I am regretfully and painfully a noob . But I'm trying to change that!! I do not know any programming languages, but have managed to "make things happen" by doing enough research to get whatever job I've ever needed done done. Anyway, I have been creating Selenium tests using the Selenium IDE and I am having a bit of trouble getting these test to run via Selenium Grid. I have been exporting the tests as JUnit 4 (Webdriver) files. I am running the grid on a