selenium-ide

How to click a specified li for an autocomplete ul with Selenium IDE?

戏子无情 提交于 2019-12-02 04:30:27
问题 I'm using Selenium IDE for some test and trying to use it to select an specified option from an autocomplete. My problem is, the autocomplete is built in a <ul> and the two <li> possibles are identical. How to click a specified li ? How to say to Selenium "click the first li " or "click the li with the text "apples"? I'm tried some ways that I found, but all are for other types of Selenium, and none are useful in Selenium IDE. Thanks in advance and sorry for my bad english! Here is the code:

Selenium IDE: Get row count in table

廉价感情. 提交于 2019-12-02 04:30:19
How do I get the row count of a given table using the Selenium IDE? When I right click on my table, I can only assert/verify the following: Title Value Text Table Element Present with the target being //div[@id='reports']/div[n]` where `n` is the number of rows. You want to use the storeXpathCount command. This takes two parameters which can be stored within the IDE Target and Value fields where the following parameters are, respectively: xpath : the xpath expression to evaluate variableName Here is an example where the table id = reports : Command: storeXpathCount Target: //div[@id='reports']

how to select an option from an autocomplete field in selenium ide

北城以北 提交于 2019-12-02 03:00:54
i am testing a form of post a feed. where user can notify some existing user. while i am enter any data or character in the field its id is changes. eg. if at the initial stage verifyValue id=token-input-auto_complete enter a data in the field ani verifyValue id=token-input-auto_complete ani after enter the data in the field it shows only the character in the field but not shows any dropdown options Do you mean a jQuery autocomplete? Or some other type of autocomplete (please name it if so) This is how I select a jQuery autocomplete list value in selenium: (note this is typed in code, not

Selenium IDE - record right click

流过昼夜 提交于 2019-12-02 02:54:10
问题 Im using Selenium IDE for record test for my web app. Selenium IDE do not recognize the right click in my div . I've customized right click over my div and I wanna test relative functions. Can anyone help me? Thanks! Tommaso 回答1: Use 'contextMenu' / 'contextMenuAt' to do a right-click. But as far as i know, you can not record that yet, so you have to add it manually. 来源: https://stackoverflow.com/questions/7172955/selenium-ide-record-right-click

Selenium IDE - record right click

我怕爱的太早我们不能终老 提交于 2019-12-02 02:05:40
Im using Selenium IDE for record test for my web app. Selenium IDE do not recognize the right click in my div . I've customized right click over my div and I wanna test relative functions. Can anyone help me? Thanks! Tommaso Use 'contextMenu' / 'contextMenuAt' to do a right-click. But as far as i know, you can not record that yet, so you have to add it manually. 来源: https://stackoverflow.com/questions/7172955/selenium-ide-record-right-click

How to click a specified li for an autocomplete ul with Selenium IDE?

瘦欲@ 提交于 2019-12-02 01:37:22
I'm using Selenium IDE for some test and trying to use it to select an specified option from an autocomplete. My problem is, the autocomplete is built in a <ul> and the two <li> possibles are identical. How to click a specified li ? How to say to Selenium "click the first li " or "click the li with the text "apples"? I'm tried some ways that I found, but all are for other types of Selenium, and none are useful in Selenium IDE. Thanks in advance and sorry for my bad english! Here is the code: <ul class="ui-autocomplete ui-menu ui-widget ui-widget-content ui-corner-all" role="listbox" aria

Selenium click on link

好久不见. 提交于 2019-12-01 18:09:56
I'm using Selenium's IDE in FireFox to do some testing, and I want Selenium to click the second link (Text2). Any idea how I do that? Unfortunately I don't have access to the HTML and can't modify it. The record function doesn't seem to register the click. The code is attached below. Thanks in advance! <div class="class1"> <div class="class2"> <span class="class3"><a href="#" onclick="fn1();">Text1</a></span> </div> </div> <div class="class1"> <div class="class2"> <span class="class3"><a href="#" onclick="fn2();">Text2</a></span> </div> </div> Selenium supports the link=Link Text locator as

Can't see File/Edit/Actions menu bar on Firefox Selenium IDE

扶醉桌前 提交于 2019-12-01 17:39:57
Hi, I'm just starting to learn Selenium & was trying to explore IDE for Firefox. I'm using Firefox 59.0.2 & Selenium IDE 3.0.2. The IDE window, doesn't show me any menu bar options (File/Edit/..). I was looking forward to export the code in Java. How can I do that without the menu bar option itself? Kindly refer to attached screen shot. I would appreciate any help, I'm sure I'm missing something here, unless the options are entirely disabled in latest IDE version. Right Click on the test case you created on IDE. Export option should be there 来源: https://stackoverflow.com/questions/50089367

Selenium click on link

三世轮回 提交于 2019-12-01 16:18:17
问题 I'm using Selenium's IDE in FireFox to do some testing, and I want Selenium to click the second link (Text2). Any idea how I do that? Unfortunately I don't have access to the HTML and can't modify it. The record function doesn't seem to register the click. The code is attached below. Thanks in advance! <div class="class1"> <div class="class2"> <span class="class3"><a href="#" onclick="fn1();">Text1</a></span> </div> </div> <div class="class1"> <div class="class2"> <span class="class3"><a href

Can't see File/Edit/Actions menu bar on Firefox Selenium IDE

ε祈祈猫儿з 提交于 2019-12-01 15:50:13
问题 Hi, I'm just starting to learn Selenium & was trying to explore IDE for Firefox. I'm using Firefox 59.0.2 & Selenium IDE 3.0.2. The IDE window, doesn't show me any menu bar options (File/Edit/..). I was looking forward to export the code in Java. How can I do that without the menu bar option itself? Kindly refer to attached screen shot. I would appreciate any help, I'm sure I'm missing something here, unless the options are entirely disabled in latest IDE version. 回答1: Right Click on the test