selenium-ide

“result is null” error when working around _blank deficiency in Selenium IDE

天涯浪子 提交于 2019-12-25 08:33:17
问题 Using a workaround to be able to check the contents of a new tab, I get unexpected results. If I play the test case, the following line fails: storeEval | javascript{"selenium.browserbot.getCurrentWindow().open('', 'my_window')"} | my_window with the following error message: [error] Threw an exception: result is null The following alternative statements show the exact same symptoms: getEval | window.open("", "my_window") getEval | selenium.browserbot.openWindow("", "my_window") Now, if I

Unable to locate using find element by link

南笙酒味 提交于 2019-12-25 02:22:55
问题 Newbie in testing. I generated a test case using Selenium, and then exported it as a Python script. Now, when I try to run that in terminal, I get following error: raise exception_class(message, screen, stacktrace) NoSuchElementException: Message: u'Unable to locate element: {"method":"link text","selector":"delete"}' I am using the command generated by Selenium i.e driver.find_element_by_link_text("delete").click() The reason for the error I believe is that the link "delete" in my web page

How to handle arrays in Selenium IDE 3.7.4

久未见 提交于 2019-12-25 02:00:41
问题 In Selenium IDE 3.7.4 I'd like to make a loop to do click on several links that have similar Xpath. For this I think in create an array but trying with a simple array with the settings (Command,Target, Value) as below is not working. +----------------+---------------------------------------+---------+ | Command | Target | Value | +----------------+---------------------------------------+---------+ | execute script | var a = "A|B|C".split("|"); return a; | arr | +----------------+-------------

Read the rows in excelsheet and populate in webpage text box

自作多情 提交于 2019-12-25 01:07:13
问题 Can anyone please suggest me how can I read an excel-sheet in my local-drive say"C:\company_names.xls" and populate into the text boxes present in a webpage. I will explain the test case scenario as below: 1)The webpage should first open in a Firefox. 2)The left navigation should be clicked "companylist" 3)Then a drop-down value name company list(by default) should be selected. 4)Then create button should be click which takes the page to another page which has two text boxes with names say

How to get Selenium IDE to work on Firefox 32

懵懂的女人 提交于 2019-12-24 14:10:00
问题 I just installed the Selenium IDE plugin into Firefox 32 using the "Get Add-ons" feature. When I click on the Selenium button, I get an alert box that says: "You don't have installed Selenium IDE". Has anyone else ever encountered this problem, and if so, do you know how to solve it? 回答1: Bro please do not add selenium addon from firefox as there is selenium IDE 1.2.0 available as this is a bug in firefox 32, so you have to manually download the addon for firefox 32 go to this website: http:/

Button Click not working in Selenium IDE

最后都变了- 提交于 2019-12-24 13:33:52
问题 All, I am using clickAndWait xpath=//button[contains(.,'Next')] , it does show when i click find on Selenium IDE but doesn't click on the Button. The button has id = pmc_wizard_next and class = btn btn-next. The html for the button is: <div id="pmc_wizard" class="wizard pmc-wizard"> <ul class="steps pmc-wizard-steps"> … </ul> <div class="actions pmc-wizard-actions"> <button id="pmc_wizard_prev" class="btn btn-prev"> … </button> <button id="pmc_wizard_next" class="btn btn-next" data-last=

Cannot store attribute using Selenium IDE

女生的网名这么多〃 提交于 2019-12-24 13:29:32
问题 I have the following XML structure: <array-list> <tests> <test myId="11">Some data</test> <test myId="22">Some data 2</test> </tests> </array-list> How can I store "myId" attribute of the first element in the list? I have tried storeAttribute command with the following location parameters with no luck: 1. //array-list/tests/test[1]@myId 2. xpath=//array-list/tests/test[1]@myId 3. */test[1]@myId 4. //array-list/tests/test@myId 5. //array-list/tests/test[1]/@myId 6. //array-list/tests/test/

How do you store an elements text with selenium in a javascript variable?

a 夏天 提交于 2019-12-24 09:58:47
问题 I have this html: <div class="title"> <div class="subtitle"> <div id="flhcd1> <h3>Hello</h3> <span></span> </div> <div class="subtitle2"> </div> </div> I want to be able to use selenium and javascript to store the text in the <h3> (Hello) in the variable titleText . I will be using this code in browsermob for monitoring tests. 回答1: In BrowserMob you can do var titleText = selenium.getText("//div[@id='flhcd']/h3"); and then use titleText like you would any variable. 来源: https://stackoverflow

Selenium IDE - script execution time in output

有些话、适合烂在心里 提交于 2019-12-24 01:18:28
问题 Do you know how to check the script execution time in Selenium IDE? What kind of command or option I should use? Thanks in advance! 回答1: I was wondering the same thing, and this is what I came up with. storeEval | new Date().getTime() | startTime // The rest of your code here storeEval | new Date().getTime() | endTime storeEval | (${endTime} - ${startTime}) / 1000 | scriptExecutionTime echo | ${scriptExecutionTime} seconds | 来源: https://stackoverflow.com/questions/15000648/selenium-ide-script

Call to eval() blocked by CSP with Selenium IDE

倖福魔咒の 提交于 2019-12-24 00:02:52
问题 I have a selenium test developed in Selenium IDE . I have a step in this suite that should type a value in a text field. It fails at that step giving the following error: 18. click on id=firstName Failed:11:12:59 call to eval() blocked by CSP 回答1: CSP Content Security Policy (CSP) acts as a added layer of security that helps to detect and mitigate attacks including Cross Site Scripting (XSS) and data injection attacks. These attacks are primarily used for data theft and distribution of