selenium-ide

Selenium IDE - Command to wait for 5 seconds

99封情书 提交于 2019-11-29 22:00:01
I´m using the Selenium IDE for Firefox and searching for a wait command. My problem is that I want to test a website with a embedded external map. This external map needs 3-5 seconds to load. My commands: open /Page/mysite.html //Wait Command? (5 seconds) ClickAndWait link=do something Adam Prax Use the pause command. Set speed to fastest (Actions --> Fastest), otherwise it won't work. This will delay things for 5 seconds: Command: pause Target: 5000 Value: This will delay things for 3 seconds: Command: pause Target: 3000 Value: Documentation: http://release.seleniumhq.org/selenium-core/1.0

Selenium click event does not trigger angularjs ng-click

99封情书 提交于 2019-11-29 18:40:05
问题 I have this page where there is a textbox and there is save button associated with each text box. I need to click on the save button so that it will save the value in text box. It is working manually and using selenium. But when running through Selenium WebDriver it's not saving the text box value. But there is no error exception being thrown. Input, Click is working. savetextvalue() is not triggered in short. There is similar issue Selenium click event does not trigger angularjs event <pp

In Selenium IDE btnDelete (Button) not found

非 Y 不嫁゛ 提交于 2019-11-29 17:28:40
Help URL : URL[1]: http://i.stack.imgur.com/s5ZnK.png ' This URL also display a delete button code. Selenium IDE: Command : Target clickAndWait : id=ctl00_Dialogproxy_deletenews_btnDelete Log Table value: [info] Executing: |clickAndWait | id=ctl00_Dialogproxy_deletenews_btnDelete [error] Element id=ctl00_Dialogproxy_deletenews_btnDelete not found Actually i am not understanding what is the real issue because manually delete (button) functionality proper run but selenium IDE give the above error What is likely happening is the previous click element launches this "window" with the btnDelete

Java and Selenium for web form filling?

一曲冷凌霜 提交于 2019-11-29 17:09:52
I wanted to fill a web form automatically. I used Selenium IDE to create a script which ENDS with a command that searches for the specified text in the webpage. I wanted to take action based on this TEXT. If text = congratulations, then send an e-mail to some address. If not, then click ok button. I don't think the Selenium IDE can do this If-else logic and send mail on its own ( Using if / else in selenium ide ). So, I thought of using Java code to "run" this Selenium HTML script, find out if the desired text was found or not - if yes then send mail; otherwise the Java code will "click" the

How to automate username/password fill for firefox authentication popup using selenium IDE

本小妞迷上赌 提交于 2019-11-29 15:45:47
I got a selenium script that works, but when it is opened with selenium-rc it is in a new instanced which requires me to re-login. Is there a way to automate filling in the username/password for the "authentication required" window that pops up? I have tried the following but it doesn't work: http://username:password@site.com/ instead of http://site.com/ Any ideas other than calling another script like autohotkey? I ended up using AutoIT with a login script containing the following and it worked: WinWaitActive("Authentication Required") Send("Username") Send("{TAB}") Send("Password") Send("

Selenium WebDriver with Java: Can't accept alert

亡梦爱人 提交于 2019-11-29 08:45:40
When recording in selenium IDE I can click the "OK" button in a popup, and expected to be able to click it using driver.findElement(By.linkText("OK")).click(); but this was not the case. Similarly this doesn't work. driver.switchTo().alert().accept(); Selenium throws a NoAlertPresent exception. If what's popping up is not an alert, then what is it? And how do I click yes! in such case I'd prefer to check(verify) the alert presence on the page and then if is present - accept it. It be somthing like: public boolean isAlertPresent() { boolean presentFlag = false; try { // Check the presence of

onchange event does not get fired on selenium type command

最后都变了- 提交于 2019-11-29 06:51:52
I am typing some value, on change do a total. But somehow, this event is not getting fired with selenium type command. I also tried typeKey and typeAt ..But no success. Any workaround for this ? To trigger the onchange event, try adding this command in Selenium IDE: fireEvent targetID blur Marlon Bernardes Firefox has a bug which prevents some events from being executed while the browser window is out of focus. This could be an issue when you're running your automation tests - which might be typing even if the window is out of focus. To fix this issue I triggered the change event "manually",

Why do my tests fail when run together, but pass individually?

二次信任 提交于 2019-11-29 06:12:31
问题 When I write a test in Visual Studio, I check that it works by saving, building and then running the test it in Nunit (right click on the test then run). The test works yay... so I Move on... Now I have written another test and it works as I have saved and tested it like above. But, they dont work when they are run together. Here are my two tests that work when run as individuals but fail when run together: using System; using NUnit.Framework; using OpenQA.Selenium.Support.UI; using OpenQA

Selenium IDE:Opening in new tab and shift focus to new tab not working

此生再无相见时 提交于 2019-11-29 04:19:04
i have stuck in one point in selenium ide the scenario is like this Login----- go to dashboard page--------- mouse over any menu on the top navigational bar---- on mouseover sub menu will appear as drop down-- now click any link from the drop down -- after clicking link will open in new tab now from that point on-wards we have to shift our focus to that new tab because rest of the testing will be done on that new tab. The code i have written is given below <tr> <td>open</td> <td>/magma/dev/</td> <td></td> </tr> <tr> <td>type</td> <td>name=user_id</td> <td>abcd</td> </tr> <tr> <td>type</td> <td

How to get Selenium to wait for a transition page to redirect before running an assertion

霸气de小男生 提交于 2019-11-29 03:04:27
I have a fairly standard situation: Click a button, it loads a transition page with a progress bar or something, and then that page redirects to the next page, which takes a while to load. I want to run assertions on the final page, not the transition page. How do I tell Selenium IDE to wait till the final page loads before performing the assertions? Thank you. A simple approach would be wait for some "particular" text on that final page, see "waitForText" command for further info on it josh-cain To add to John's approach, you can use the Selenium wait mechanism to verify that elements on your