selenium-ide

Implementing array elements in Selenium

跟風遠走 提交于 2020-06-17 14:08:49
问题 Post My previous question in Printing array elements in Selenium IDE I tried to print the array elements in text box the command is as follows: while sending the values of vehicles to iterator so that I can further enter the values as ${KEY_ENTER}with the array elements it does not pass the value of the vehicle to the iterator. Is there an alternate way where I can send the array values so that I can target css=.XTCLo to that array elements. I even tried by executing type | css=.XTCL0| $

How can I click on a div button with selenium webdriver?

时光怂恿深爱的人放手 提交于 2020-02-02 00:30:07
问题 I have this button:- <div class="dsk-col-1-4 card new"> <div class="div_center_div"> <span class="icon icon_plus-black-symbol"></span> <h2>Create</h2> </div> </div> But I tried with find element by classname:- driver.findElementByClassName("dsk-col-1-4 card new").click(); But it does not work. Any help? 回答1: The "by class name" locator usually expects a single class name to be passed: driver.findElementByClassName("card").click(); If you want to use multiple classes, go with a "by CSS

How to generate Java source code from Selenium IDE (IDE code is in HTML extension)

别来无恙 提交于 2020-01-31 05:47:26
问题 I am using Selenium IDE (a Firefox plugin) for doing testing. I am unable to see java code when I start recording something. What I see always is HTML. Any idea what can be the best way to get the java source code. Please any one can help on this. Thanks a lot. 回答1: Below are steps: Options->Format -> select format of your choice eg. junit/testng/isfw Go to Source tab . To export test case in specific format use File->Export Test Case As -> select format One of the useful feature of Selenium

New Selenium IDE switch to iframe using frame id

对着背影说爱祢 提交于 2020-01-25 08:05:14
问题 I am trying to select an element which is inside Iframe in selenium ide but selenium IDE not able to identify element. open | https://verify-taxcerts.floridarevenue.com pause | | 30000 select frame | id=ivuFrm_page0ivu3 select frame | id=isolatedWorkArea click | OFFM.SellerVerView.TaxTypeDDKey type | somename This is how i am doing it in java not sure how to do it in selenium ide.Below code is working fine WebDriver driver = new FirefoxDriver(); driver.manage().window().maximize(); driver.get

How to use loops in Selenium IDE

£可爱£侵袭症+ 提交于 2020-01-17 03:55:07
问题 Is for loop present in Selenium IDE? if yes, How can I use it in Selenium IDE? Thanks, Nit 回答1: We can use while loop and goto function in Selenium IDE. For that we must install the addon flow control. Add from the following link: Selenium IDE: Flow Control After installing you will get the commands while and gotoif in Selenium IDE 1) Example for while loop <tr> <td>getEval</td> <td>index = 0;</td> <td></td> </tr> <tr> <td>while</td> <td>index < 10;</td> <td></td> </tr> <tr> <td>storeEval</td

from selenium test scripts back to selenese

删除回忆录丶 提交于 2020-01-14 03:13:12
问题 I've got a bunch of test scripts written using Test::WWW::Selenium (but the fact that I used perl is inconsequential, any language selenium supports probably has the problem I describe). When the cogs in my application come loose I'd like to replay the test using the Selenium IDE, letting me have full control over the action But I'm not sure how to go from my test script back into the selenium IDE, you can't paste perl into the IDE and have it transmogrify back to "HTML" (aka, internal

Selenium - verify the list of suggestions is displayed

混江龙づ霸主 提交于 2020-01-13 17:56:24
问题 What command is used to verify the list of suggestions is displayed when typing a letter in text field (example: a)? And how to verify the items in the list start with the letter you typed? 回答1: I believe you're talking about something like Google Suggests with autocomplete. Your test would look something like this Load the page Enter the value using typeAndWait to let the Ajax call happen Compare the result to a text blob The calls would be like this open(/) typeAndWait(textId,a) verifyText

how to get a sub parent web element component between many div in selenium xpath?

随声附和 提交于 2020-01-07 05:42:13
问题 I want to get the sub parent element <div class="post"/> given the text of a post in this case given the text "post2" that is the second div in the code there are many posts in a page. I tried to use an xpath like this that I did thinking that is possible find between in the sub-parents web elements: "//div[@id='content']//span[contains(text(), 'post2')]/.//*[@class='post']" <div id="content"> <div class="post"> <div class="right"> <div class="content"> <div class="post-content"> <span> post1

How to record the script for dynamic ID generation in Selenium

丶灬走出姿态 提交于 2020-01-06 04:07:05
问题 I am working on Selenium IDE. Currently I am facing problem related to dynamic id. I have recorded one script, but when I run it again it fails because id changes every time. Is there any way to get rid of this?? Waiting for reply thanks in advance 回答1: You should use other type of locators (for example xPath - as Pavel Janicek wrote). Here is an article about Selenium locators http://www.qaautomation.net/?p=188 Read it and choose the best way for you. 回答2: Generally - try switching from ID

How to record the script for dynamic ID generation in Selenium

眉间皱痕 提交于 2020-01-06 04:07:04
问题 I am working on Selenium IDE. Currently I am facing problem related to dynamic id. I have recorded one script, but when I run it again it fails because id changes every time. Is there any way to get rid of this?? Waiting for reply thanks in advance 回答1: You should use other type of locators (for example xPath - as Pavel Janicek wrote). Here is an article about Selenium locators http://www.qaautomation.net/?p=188 Read it and choose the best way for you. 回答2: Generally - try switching from ID