selenium-ide

Selenium IDE How to set timeout?

别等时光非礼了梦想. 提交于 2019-12-13 03:59:27
问题 I'm using Selenium IDE and when trying to use wait for element present command, i got this error: But i couldn't find anywhere to set the timeout at all, i'm using the Chrome extension Any help would be appreciated! 回答1: I was able to figure out after looking at Reference tab. It is set using Value field. 来源: https://stackoverflow.com/questions/55599070/selenium-ide-how-to-set-timeout

Using Selenium IDE how can I mouseover elements in bootstrap scripted UIs?

南楼画角 提交于 2019-12-13 02:48:00
问题 I am trying to use mouseover to hover over an element in a site using Bootstrap (I've tried with buttons, or simply img classes) but no luck. Here's my element that I want to mouseOver on for which some content gets displayed (which I want to validate) on doing so. thanks <span class="label-info form-info" data-toggle="popover" title="Information" data-content="The data that needs to be verified"> I tried the below which didn't work for me: <tr> <td>mouseOver</td> <td>xpath of element

Selenium IDE testing on maps(Open Layers)

半世苍凉 提交于 2019-12-13 01:46:59
问题 I am working on testing an application with open layers maps using Selenium IDE. I researched a lot about clicking on the specific point on the map but I couldn't do it. Can you please provide me some start on this. Thanks in advance. Regards, Rakesh 回答1: if you don't want to change the open layers code from Selenium IDE you can run your own javaScript functions by using "runScript" as a command and write your javaScript code into the target field (don't use comments as everything is written

Selenium IDE - sideflow.js loops

允我心安 提交于 2019-12-12 18:30:57
问题 I wanted to create testcase with loops. I got latest sideflow.js extension and targeted to it in Selenium options. Then I restarted Selenium IDE but it doesn't work. Sample testcase: store|i|1 while|${i}<200| echo|${i}| storeEval|i=1*storedVars['i']; i+1|i endWhile|| It displayed the following error message: [error] Unexpected Exception: fileName -> chrome://selenium-ide/content/tools.js -> file:///home/imslavko/bin/sideflow.js?1346044911197, lineNumber -> 100 Firefox version: 14.0.1 for

selenium IDE - change Base URL for all tests?

笑着哭i 提交于 2019-12-12 16:25:43
问题 I have a suite of 15 test cases. I now want to run them against a different Base URL. Is there any way to change all 15 in one go? So far what I have had to do is change each of them one-by-one which is slow and tedious. 回答1: You can open all the test case xmls in a text editor. You can even just edit the 'source' in the selenium IDE (see screenshot below). Just remove the <link rel="selenium.base" href="http://dmstaff2.herokuapp.com/" /> in each test case and then they will use the url of

Selenium.click not working on some anchor elements

最后都变了- 提交于 2019-12-12 10:56:15
问题 The application that am working on was recently revamped and as part of that a new JQuery calendar was introduced. I need to click on a link in the calendar to select the time and date. However, Selenium.click is not working. The command gets executed, but nothing happens on the screen. To check whether my XPATH/CSS locator (I tried both) is correct, I added selenium.getText(locator) and selenium.highlight(locator) commands. Both worked!. No issues in that. Its ONLY the click that is not

How to check if a style has been applied in Selenium IDE

谁说我不能喝 提交于 2019-12-12 10:54:14
问题 I want to check if a particular style has been applied to an element. Preferably using the css selector. EG: ... <div id="my_div" style="display: block; background-color:#fff;"> some content </div> ... How do I test that display is block regardless of the background color? 回答1: Worked it out: command: assertAttribute or verifyAttribute Target : css=#my_div@style value : *display: block* The asterisk is a wild card. 来源: https://stackoverflow.com/questions/8806747/how-to-check-if-a-style-has

Use select command in Selenium IDE testing tool for selecting one option from dropdown list

旧时模样 提交于 2019-12-12 10:18:23
问题 We are using Selenium IDE testing tool in our web application. I am confused in using select command; I need to select one value from a drop down using select command. In select ( selectLocator,optionLocator ) what can we give in place of selectLocator and optionLocator for selecting one option from dropdown list? 回答1: In the command select (selectLocator, optionLocator), 'selectLocator' is the Id of the drop down from which the value is being selected and the 'optionLocator' is the value

Selenium IDE and xpath - find text / row in table and select radio box

徘徊边缘 提交于 2019-12-12 08:57:12
问题 I've been using Selenium IDE and getting some good results. I've done a lot of reading about following-sibling and preceding-sibling but I can't locate the right radio button. Essentially I want to find the row in a table with the word 'testing' and then click the radio button in the cell. So far I can find the input button //input[@type='radio'] and find the text testing //a[contains(text(),'testing')] I've been trying to use this in the ide check | //input[@type='radio']/following-sibling:

In Selenium Webdriver which is better in terms of performance Linktext or css?

故事扮演 提交于 2019-12-12 07:07:14
问题 In Selenium it is always better to go locate the element with the Locator ID . And the Least locator is XPath (Correct me if I'm wrong). So is there any precedence or order in which a person should proceed with Locators to identify element ? 回答1: I'm just writing some points from this reference which is already provided by GK27 in comments, The purpose of writing here is to be clear if page has not found some time, user can view from here. So the better way of locating the element, Priority