selenium-ide

How do I ask Selenium IDE to check a HTTP Status Code (e.g. 2XX, 404, 500)

霸气de小男生 提交于 2019-12-10 15:06:17
问题 How do I ask Selenium IDE to test HTTP Status codes after loading a page? I know this is possible (but awkward) in regular Selenium, how about in Selenium-IDE? Is there a plugin or other way to get something like: open http://www.example.com/changepassword/obama assertHTTPStatus 5XX Thus asserting either success (or this this case failure) or a particular open? Without checking the status code, I have to check page text, which is fragile as someone might redesign the look or feel of the error

Selenium: test if element contains some text

和自甴很熟 提交于 2019-12-10 12:40:00
问题 With Selenium IDE, how can I test if an element's inner text contains a specific string? For example: <p id="fred">abcde</p> 'id=fred' contains "bcd" = true) 回答1: The Selenium-IDE documentation is helpful in this situation. The command you are looking for is assertText , the locator would be id=fred and the text for example *bcd* . 回答2: It can be done with a simple wildcard: verifyText id="fred" *bcd* See selenium IDE Doc 回答3: You can also use: assertElementPresent css=p#fred:contains('bcd')

Conditional check in Selenium IDE

陌路散爱 提交于 2019-12-10 09:49:05
问题 I want to check whether a possibly mandatory field is filled in using selenium. I would very much prefer to do this using the IDE rather than exporting to code. To be more specific, I want to make sure that a post code field is filled in if the value of the country drop down list is 'United Kingdom'. The post code field can be left blank if the drop down list is set to anything else. If the consensus is that I have to export and do the test in code, then I will, but I would be a lot happier

What are the inner workings of the Selenium waitFor mechanism?

二次信任 提交于 2019-12-09 16:37:40
问题 I am trying to customize the behavior of Selenium's click command, (via user-extentions.js), by intercepting calls to doClick(locator). Basically I need to delay click actions whenever our application's "busy indicator" is being displayed. (Now the standard answer for this kind of thing is to insert a waitFor into the script for those situations. Indeed, we currently have zillions of them throughout our scripts. I'm trying to eliminate those.) Detecting the page element is the trivial part.

Selenium:Webdriver: Is there a listener to capture user actions in the browser session launched by WebDriver?

你。 提交于 2019-12-09 13:03:26
问题 I am trying to create a basic recording tool using Selenium2/Webdriver and I am aware that Selenium Already provides an IDE, but I want to build a more generic one. More specifically, once I launch the browser using WebDiver API in java, I would like to register a listener with the current session so I can capture user interaction with the WebDriver's launched browser. Basically if I were to write record user interactions in Java, how can I do it? Very similar to EventFiringWebDriver class,

Missing the context menu showing verify and/or assert commands for recording with Selenium IDE

回眸只為那壹抹淺笑 提交于 2019-12-08 15:27:34
For a long time I have been using Selenium IDE to record and playback web applications for test purposes. Normally when I build a script, for each new page I would right click on a unique piece of text and select the command wait to ensure that when playing back Selenium doesn't move on until that page has loaded. For some reason when I now right click the command context menu does appear in my list. Since then downloaded the latest version of IDE but no success. Any ideas? Install the FlowControl Plugin and it should work again. I found this workaround in the relating issue at: https://github

Firefox bug with Selenium - Can't access dead object

心已入冬 提交于 2019-12-08 15:27:23
问题 I've tried to run my tests with Selenium 2 and Firefox 19. One of this tests causes an error "ERROR: Command execution failure. The error message is: can't access dead object". I'm reading about it, it seems like a bug in newest Firefox's versions. Lot of people have the same issue, but I've not found anything really clear. Any heroe can help us? Maybe we just need to change something in "about:config"? Regards 回答1: I was desperate about the same Problem and didn't find any solution although

Is there a way to combine both branch element id and the element id for the downward arrow?

别来无恙 提交于 2019-12-08 08:21:30
问题 Is there a way to combine both branch element id and the element id for the downward arrow so that I could click on downward arrow for that specific Branch? 回答1: I would stay on the common "tr" level - getting the desired row by the "fancytree title" and then going down to the arrow-down "button": //tr[.//span[@class = "fancytree-title" and . = "Branch 100"]]//span[@class = "userman-menu"] 来源: https://stackoverflow.com/questions/40292910/is-there-a-way-to-combine-both-branch-element-id-and

Selenium clicks not working with GWT

烈酒焚心 提交于 2019-12-08 08:20:58
问题 I run GWT OBF (thus this isn't the problem), but when I use Selenium (tried both IDE and RC) my clicks don't get recorded. The component I'm trying to click is a <div> , but nothing happens. For instance, in IDE I am sometimes (very seldom, like one in 50 clicks) able to register a click on different tabs (contained in <div> ), but never able to replay the test with any resulting click. Help!?! 回答1: This is a duplicate of Selenium Testing of GWT 2.0 but here is my answer again. Unfortunately

Selenium - how to switch to a different (login) window that is brought up?

若如初见. 提交于 2019-12-08 06:48:16
问题 My application has an admin account and the testing has been within that. This account then has hyperlinks for 'regular' users that they use for their login, for example: One http://dmplanning-stage.herokuapp.com/p/7Fimn1FRs1WZe5xmFTUA Two http://dmplanning-stage.herokuapp.com/p/FRs1WZe7Fimn15TUAxmF Three http://dmplanning-stage.herokuapp.com/p/mFTUA7Fimn1FRs1WZe5x These links are generated each time I run the test suite and the id's are different. I've created a test to locate and click on