selenium-ide

Click in OK button inside an Alert (Selenium IDE)

僤鯓⒐⒋嵵緔 提交于 2019-11-26 12:23:32
问题 I need to click the \'Ok\' button inside an alert window with a Selenium command. I\'ve tried assertAlert or verifyAlert but they don\'t do what I want. It\'s possible the click the \'Ok\' button? If so, can someone provide me an example of the Selenium IDE command? 回答1: Try Selenium 2.0b1. It has different core than the first version. It should support popup dialogs according to documentation: Popup Dialogs Starting with Selenium 2.0 beta 1, there is built in support for handling popup

Running Selenium Webdriver with a proxy in Python

六月ゝ 毕业季﹏ 提交于 2019-11-26 11:12:59
I am trying to run a Selenium Webdriver script in Python to do some basic tasks. I can get the robot to function perfectly when running it through the Selenium IDE inteface (ie: when simply getting the GUI to repeat my actions). However when I export the code as a Python script and try to execute it from the command line, the Firefox browser will open but cannot ever access the starting URL (an error is returned to command line and the program stops). This is happening me regardless of what website etc I am trying to access. I have included a very basic code here for demonstration purposes. I

Selenium web driver: cannot be scrolled into view

此生再无相见时 提交于 2019-11-26 09:56:57
问题 I am using Selenium IDE and Selenium web driver testng in eclipse .. my testing is against ZK application .. the test case works fine on Selenium IDE .. <?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"> <head profile=\"http://selenium-ide.openqa.org/profiles/test-case\"> <meta http-equiv=\"Content-Type\" content=\

Equivalent of waitForVisible/waitForElementPresent in Selenium WebDriver tests using Java?

 ̄綄美尐妖づ 提交于 2019-11-26 08:55:33
问题 With \"HTML\" Selenium tests (created with Selenium IDE or manually), you can use some very handy commands like WaitForElementPresent or WaitForVisible . <tr> <td>waitForElementPresent</td> <td>id=saveButton</td> <td></td> </tr> When coding Selenium tests in Java (Webdriver / Selenium RC—I\'m not sure of the terminology here), is there something similar built-in ? For example, for checking that a dialog (that takes a while to open) is visible... WebElement dialog = driver.findElement(By.id(\

Using upper-case and lower-case xpath functions in selenium IDE

旧街凉风 提交于 2019-11-26 04:49:05
问题 I am trying to get a xpath query using the xpath function lower-case or upper-case , but they seem to not work in selenium (where I test my xpath before I apply it). Example that does NOT work: //*[.=upper-case(\'some text\')] I have no problem locating the nodes I need in complex path and even using aggregated functions, as long as I don\'t use the upper and lower case. Has anyone encountered this before? Does it make sense? Thanks. 回答1: upper-case() and lower-case() are XPath 2.0 functions.

Running Selenium Webdriver with a proxy in Python

╄→гoц情女王★ 提交于 2019-11-26 02:17:55
问题 I am trying to run a Selenium Webdriver script in Python to do some basic tasks. I can get the robot to function perfectly when running it through the Selenium IDE inteface (ie: when simply getting the GUI to repeat my actions). However when I export the code as a Python script and try to execute it from the command line, the Firefox browser will open but cannot ever access the starting URL (an error is returned to command line and the program stops). This is happening me regardless of what