selenium-ide

Close a newly opened tab or window in Selenium IDE

↘锁芯ラ 提交于 2021-02-19 03:28:13
问题 Using Selenium IDE with Windows7 and Firefox, an automatic click on a link may produce either a new tab or a new window. close() closes the original window or tab, not the new one. Maybe if I had the ID of the newly created one I could select it and then close it but I don't know how to do this automatically. I've asked on the Selenium forum and read the questions here, but they focus on WebDriver, not the IDE. Any help would be appreciated! Stig 回答1: I had same problem and found a solution:

Selenium IDE - exporting test scripts

江枫思渺然 提交于 2021-02-18 06:55:33
问题 I'm trying to export my test automation created in Selenium IDE, but I can't find the option to export. I have a few test scenarios where the tests are the same but I need to make a copy of an existing test and swap some IDs for it to work. I can only save it as a .side file and not as individual Python scripts for Selenium. I'd like to export an existing script and re import it into Selenium IDE as a copy (where I can make some changes, while keeping the majority of the commands the same).

Selenium IDE python code export, doesnt work

回眸只為那壹抹淺笑 提交于 2021-02-11 12:33:21
问题 I want to use Selenium IDE to do some easy tasks in Chrome an then export the code to python and execute there. However, when I execute the exported code in python nothing happens. # Generated by Selenium IDE import pytest import time import json from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.support import expected_conditions from selenium.webdriver.support.wait import

Printing array elements in Selenium IDE

一个人想着一个人 提交于 2021-01-29 21:49:47
问题 Since StoreEval and getEval does not work so I added javascript as in image one Previously I used to do as storeEval new Array("car","bus"); vehicles getEval myitems=0; to use the loop Output is as Running 'new array' 13:43:33 1.store on new Array("car","bus"); with value vehicles OK 13:43:34 2.executeScript on return 1 with value myitems OK 13:43:34 3.while on ${myitems}<3 OK 13:43:34 4.store on myitems with value myvar OK 13:43:34 echo: javascript{storedVars['vehicles'][storedVars['myvar']]

Printing array elements in Selenium IDE

只谈情不闲聊 提交于 2021-01-29 20:17:56
问题 Since StoreEval and getEval does not work so I added javascript as in image one Previously I used to do as storeEval new Array("car","bus"); vehicles getEval myitems=0; to use the loop Output is as Running 'new array' 13:43:33 1.store on new Array("car","bus"); with value vehicles OK 13:43:34 2.executeScript on return 1 with value myitems OK 13:43:34 3.while on ${myitems}<3 OK 13:43:34 4.store on myitems with value myvar OK 13:43:34 echo: javascript{storedVars['vehicles'][storedVars['myvar']]

How to give the runtime input in selenium IDE?

别说谁变了你拦得住时间么 提交于 2021-01-29 13:33:08
问题 I want to get input at runtime using selenium ide. could any one help me? 回答1: You can put break command or input-box 1.By input-box Command 1 Command 2 Command 3 4th command will be storeEval | prompt(“Enter input”); |variable type | locator of field where you want to put value| ${variable} continue with your next commands 2.By break command Command 1 Command 2 Command 3 4th command will be Break Enter input manually and resume execution of test continue with your next commands 回答2: you can

Selenium IDE not capturing the popup/ Alerts

这一生的挚爱 提交于 2021-01-28 19:46:02
问题 I am using selenium IDE to record the commands. I need to test the red rout for login screen. But Selenium is not recognizing the alert coming from the application. Highlighted in bold alert message is not captured by the selenium IDE. selenium.open("http://192.168.132.244:8080/SampleApp/"); assertEquals("SampleApp", selenium.getTitle()); selenium.type("name=userame", "NoUser"); --USER NAME selenium.type("name=password", "Password1"); --Password selenium.click("css=input[type=\"image\"]"); -