selenium-rc

How to click in a specific part of a Button using Selenium, for the list of options to be displayed?

╄→尐↘猪︶ㄣ 提交于 2019-11-30 18:15:46
问题 <table id="ext-comp-1389" class="x-btn x-btn-text-icon " cellspacing="0" style="width: auto;"> <tbody class="x-btn-small x-btn-icon-small-left"> <tr> <tr> <td class="x-btn-ml"> <td class="x-btn-mc"> <em class="x-btn-split" unselectable="on"> <button id="ext-gen128" class="x-btn-text create" type="button">New</button> </em> </td> <td class="x-btn-mr"> <i> </i> </td> </tr> <tr> </tbody> </table> Above is how the HTML element is embedded..! The HTML element is a 'New' button with a '+' sign next

Selenium Testing HTTPs Trust All certificates working for FF but not IE

最后都变了- 提交于 2019-11-30 17:41:36
问题 I've been playing arround with functional testing using Selenium RC. I keep running into problems when the test goes to the login page of our site and switches to HTTPS . I keep changing settings but, each browser gets thrown out of working. Using **iehta* and **chrome* as my browsers and the Trust All SSL Certificates & Ensure Clean Session settings I can get FF3 to login to our site but, IE throws a "There is a problem with this website's security certificate." error. ( I have installed the

Running Selenium RC as a Windows Service

偶尔善良 提交于 2019-11-30 16:43:35
I'm trying to get Selenium setup to run as a windows service. It seems to be okay but, then does not seem to run properly. Using the windows toolkit I have done: "C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" SeleniumRC "C:\Program Files\Windows Resource Kits\Tools\srvany.exe" -a [SeleniumUser] -p [SeleniumUserPass] Saved the following as a.reg file (and then double clicked it) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC\Parameters] "Application"="java.exe" "AppDirectory"="C:\\Program Files\\selenium-server-1.0.3"

Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC

牧云@^-^@ 提交于 2019-11-30 11:49:35
Selenium: Is there any JS (JavaScript) code coverage tool which we can integrate with Selenium Server/RC Hi, I want to JS code coverage done by my Selenium Test Suite Is there any code coverage tool which can be integrated with my existing selenium rc framework?? In theory, you can use any coverage tool that instruments JavaScript code to collect coverage data. For example, you can use JSCoverage either in proxy mode (for real-time instrumentation) or for static instrumentation to run your Selenium tests off the instrumented code. One technical hurdle could be to devise a way to accumulate

Get PID of Browser launched by selenium

a 夏天 提交于 2019-11-30 06:01:16
I would like to get the PID of the browser launched by selenium. Is there any way to get it done? hwjp Using the Python API, it's pretty simple: from selenium import webdriver browser = webdriver.Firefox() print browser.binary.process.pid # browser.binary.process is a Popen object... If you're using Chrome, it's a little more complex, you go via a chromedriver process: c = webdriver.Chrome() c.service.process # is a Popen instance for the chromedriver process import psutil p = psutil.Process(c.service.process.pid) print p.get_children(recursive=True) If you're using PhantomJS then you can get

How can I use Selenium RC to verify our Server-Side-Redirects (301, 302)?

烈酒焚心 提交于 2019-11-30 05:29:59
问题 We have a bunch of redirects in our Apache configuration. I would like to automate the testing of redirects with Selenium, which led me to some problems: Call an URL, but assert on the redirected page Check the URL of the browser after redirected Check Response Header, to determine the type of redirection (301, 302) Maybe Selenium is not the best solution for this. Any other suggestions? 回答1: Selenium-RC has a traffic capture mode, defined as selenium.start("captureNetworkTraffic=true"); that

Selenium: Ajax Testing

谁说胖子不能爱 提交于 2019-11-30 05:25:11
Please brief me about the Ajax testing with selenium RC. As in Ajax element not reflect on the view-source, but using firebug we can see the changes in HTML source code. There are two methods associated with it Ajax testing.. 1-The method "waitForCondition (java.lang.String script, java.lang.String timeout), to provide script we have to create a java script by own or it should be the same Ajax script/java script present on the web page. Please correct me if i am wrong on below point.. 2-The method "waitForElemantPresent(Locator)", We check the Element in the firebug and check the same in this

How to close a browser on a selenium RC server which lost it's client

梦想的初衷 提交于 2019-11-30 04:00:49
suppose a client starts a selenium session on an RC server, but at the middle of the session the client "went away". The browser will remain open, and eventually, after enough such dropped sessions, there will be enough "orphan" browsers to slow down the computer. How can I make sure those browsers are closed? Why isn't there a "keep-alive" part in the protocol to make sure the client is still responsive and if not kill the session? Any browser instance has a session_id you can store. Python example: >>> import selenium >>> browser = selenium.selenium("localhost",4444, "*firefox", "http://www

Selenium IDE: How to Pass Variables

99封情书 提交于 2019-11-30 03:59:14
I have 3 different accounts in a website that I want to login and print a report every single day. I've done a Selenium IDE recording that allows me to login and print the report, however, every day I have to change the variable 3 times (for the 3 different usernames and passwords). How can I pass a variable to the "value" field of the "type" command? Thank you. Best, Rohit Ware You can go with parameterization For parameterization you need to create js file For eg. Js file contains var username = ["parameterization1@mailinator.com", "parameterization2@mailinator.com"); var password = [

Running Selenium RC as a Windows Service

天涯浪子 提交于 2019-11-29 23:20:28
问题 I'm trying to get Selenium setup to run as a windows service. It seems to be okay but, then does not seem to run properly. Using the windows toolkit I have done: "C:\Program Files\Windows Resource Kits\Tools\instsrv.exe" SeleniumRC "C:\Program Files\Windows Resource Kits\Tools\srvany.exe" -a [SeleniumUser] -p [SeleniumUserPass] Saved the following as a.reg file (and then double clicked it) Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SeleniumRC