selenium-rc

How do I retrieve the text in a table column using Selenium RC?

懵懂的女人 提交于 2019-12-11 02:46:56
问题 I have a table that looks like the following: <table class="theClass"> <tr> <td class="anotherClass"><strong>Label1:</strong></td> <td colspan="3">Value1a<br/>Value1b<br/>Value1c</td> </tr> <tr> <td class="anotherClass"><strong>Label2:</strong></td> <td colspan="3">Value2a<br/>Value2b<br/>Value2c</td> </tr> <tr> <td class="anotherClass"><strong>Label3:</strong></td> <td colspan="3">Value3a<br/>Value3b<br/>Value3c</td> </tr> </table> How can I use Selenium RC to retrieve Value1a, Value1b, and

problem: Socket error [Address already in use] in python/selenium

冷暖自知 提交于 2019-12-11 02:18:52
问题 I have a troublesome problem socket.error error: [Errno 10048]: Address already in use. Only one usage of each socket address (protocol/IP address/port) is normally permitted during automated tests using Selenium with Python. The problem is so interesting that it runs on one machine (Linux) works correctly, but on another machine (WindowsXP) generates this error. I would add that the problem arose after the reinstallation of the system and set up all over again - with the previous

Selenium RC got stuck at “Checking resource aliases”

孤街浪徒 提交于 2019-12-10 19:57:22
问题 I am new to selenium, I got a problem when running selenium RC. Actually, I have recorded one script via selenium IDE and saved it as test.html and I am able to run the script via selenium IDE but when I try to run the script via selenium RC it gets stuck at some point and displays the following message in the console "Checking resource aliases" command for running the script via command prompt: java -jar selenium-server.jar -htmlSuite "*firefox" "www.google.com" "test.html" -port 4445 Let me

In selenium automation mouse arrow movement is it possible for a test case

两盒软妹~` 提交于 2019-12-10 19:52:12
问题 I am new to selenium .. I want to know how the mouse arrow movement can be shown to the user.I mean to say we automate certain things.. I want to know how we can get the mouse arrow movement to the user who is seeing the automation going on in selenium. Is it possible ??? Can we clearly show what is being clicked , I mean which button is being clicked by mouse arrow movement. I hope I am clear 回答1: There is add-on, which highlight elements being clicked. You can find that 1 https://addons

Is there any way to delete an HttpOnly cookie from C# Selenium tests?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 15:32:46
问题 I have a set of C# Selenium tests that need to delete a cookie that has the HttpOnly flag set. Unfortunately the DefaultSelenium.GetCookie() and DefaultSelenium.DeleteCookie() commands aren't able to access the cookie, because it has that HttpOnly flag set. I've confirmed this by removing the flag by hand, and checking that subsequent calls to either of those methods are then happily able to manipulate the cookie in question. Is there any other way to do this via the Selenium .NET client

how can I add code reuse to my Selenium tests?

半城伤御伤魂 提交于 2019-12-10 10:12:50
问题 Here's the situation that I'm working with: Build tests in Selenium Get all the tests running correctly (in Firefox) Export all the tests to MSTest (so that each test can be run in IE, Chrome and FF) If any test needs to be modified, do that editing in Selenium IDE So it's a very one-way workflow. However, I'd now like to do a bit more automation. For instance, I'd like every test to run under each of two accounts. I'm getting into a maintenance issue. If I have 6 tests that I want to run

How do I test which element has the focus in Selenium RC?

北城余情 提交于 2019-12-10 09:52:08
问题 How do I test which element has the focus in Selenium RC? 回答1: The following locator should select the active element in the document: dom=document.activeElement If a form field or similar element has focus, then it should be the active element. Hope this helps. 回答2: As AlistairH mentions, you can use document.activeElement on most current browsers. To use this in Selenium you can store the active element and compare it to the active element. Below is an example for Selenium IDE, which should

Selenium locator for <label for=“x”>

混江龙づ霸主 提交于 2019-12-10 01:47:45
问题 With ASP.NET the tag IDs are pretty volatile so to make my tests more robust I want to locate elements by their label texts. I have played some with WatiN and it does this perfectly but that project seem kind of dead nowadays so I thought I'd look into Selenium as well before I decide on a framework. I have html that looks something like this <label for="ctl00_content_loginForm_ctl01_username">Username</label>: <input type="text" id="ctl00_content_loginForm_ctl01_username" /> I don't want to

Using Selenium for selecting an option on a select with optgroup

非 Y 不嫁゛ 提交于 2019-12-09 15:55:39
问题 I'm trying to select a value in a select element. I'm using Selenium RC (Java) to run the test cases. I understand that the code for selecting a value is given by: selenium.select("locator", "value=REQUIRED VALUE") I'm unable to select the desired value with the above code. I think it might be something to do with optgroup in the select source code. I do not get any exceptions, the command executes fine but looking at the page the required value is not selected. Also, I cant use ids (instead

What to use instead of CONTAINS() in CSS3

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-09 14:35:34
问题 Question about automation. I use Selenium RC. I upgraded my FF to 3.6.18 and it seems that it can't find any locators which have "contains()" inside I've read alot of forums. It's a known problem, but I did not find any solution. So what to use instead of contains() now? 回答1: The only functionality in CSS which is similar to contains() is: element[attribute*="substring"] It is helpful when you need to check some substring which contains in the attribute. 回答2: You can use jQuery :contains(text