selenium-ide

onchange event does not get fired on selenium type command

扶醉桌前 提交于 2019-12-18 04:47:19
问题 I am typing some value, on change do a total. But somehow, this event is not getting fired with selenium type command. I also tried typeKey and typeAt ..But no success. Any workaround for this ? 回答1: To trigger the onchange event, try adding this command in Selenium IDE: fireEvent targetID blur 回答2: Firefox has a bug which prevents some events from being executed while the browser window is out of focus. This could be an issue when you're running your automation tests - which might be typing

how to get already opened IE browser handle in selenium?

你离开我真会死。 提交于 2019-12-14 01:15:35
问题 I have one already opened IE browser , with some url. After this, I Run below code which will open another IE browser. however it gives me only one window handle in below code. Is it possible to get previously opened IE browser handle ? IWebDriver IEdriver = new InternetExplorerDriver(); IReadOnlyCollection<String> browsers = IEdriver.WindowHandles; foreach (String item in browsers) { IEdriver.SwitchTo().Window(item); String url = IEdriver.Url; } 回答1: I think this is what you're looking for:

Extending Selenium: How to call commands?

泄露秘密 提交于 2019-12-14 00:56:05
问题 I read about user extensions and extending selenium but am wondering how to call a command from within a custom command I'm creating. I added a file similar to the following to Selenium core extensions (user-extensions.js) in Selenium IDE Options. // selenium-action-example.js Selenium.prototype.doExample = function() { this.doOpen("/"); // doesn't waitForPageToLoad like the command does // These two commands are equivalent to the clickAndWait command. NOT! // For proof, see the

accessing different servers (urls) using selenium ide

微笑、不失礼 提交于 2019-12-13 21:32:35
问题 I've a requirement to hit a url of server x, click a submit button and jump to same url of server y and click the same submit button and this has to be repeated 26 times as I've to change on 26 servers. All this I have to do selenium ide. I managed to do this for 1 server but just wondering if there is a smart way to do this for 26 servers rather recording 26 times. I'm using selenium 2.9.0 IDE plugin with firefox browser <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C/

Cannot execute custom Selenium assert function from user-extensions.js file, when running Python RC against Selenium server

浪尽此生 提交于 2019-12-13 08:41:01
问题 I'm trying to export a Selenium script to Python from the Selenium IDE. I am using a few user-extension.js functions though (which are working in Selenium IDE). After exporting to Python, the generated script looks like this: from selenium import selenium import unittest, time, re class new_selenium_test(unittest.TestCase): def setUp(self): self.verificationErrors = [] self.selenium = selenium("localhost", 4444, "*chrome", "http://localhost/") self.selenium.start() def test_selenium_assert

Software Testing Selenium IDE/Web driver

孤街浪徒 提交于 2019-12-13 08:08:49
问题 My application is using Mathml editor and i want to record button from this editor. i am using Selenium IDE, But not able to record any action from this editor. i am new for selenium please help me out. This is what I've tried so far: driver.switchTo().frame("editML"); WebElement editor = driver.findElement(By.className("#editML")); JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; jsExecutor.executeScript("arguments[0].innerHTML = '<h1>Heading</h1>Hello World'", editor); 回答1: You

Selenium IDE - Verify Value for class

别来无恙 提交于 2019-12-13 07:44:57
问题 I want to verify the value of specific class in HTML code with Selenium IDE , In the next code I want to get the value of: data-val that under class called tgl , in my example it can be 0 or 1 . how can I do it with Selenium IDE ? How can I verify that the value is 0 or 1 ? <!DOCTYPE html> <html> <head> <body id="rpt-page-control-wafd" data-dir="ltr" data-lang="en" dir="ltr"> <div id="wrapper"> <div id="nav" style="background-color: transparent;"> <div id="page-ext"> <div id="page-content">

How to write gotoif (i > -2 && i < 100) in Selenium IDE?

帅比萌擦擦* 提交于 2019-12-13 07:38:36
问题 I tried the following method, but unfortunately it did not work. <tr> <td>gotoIf</td> <td>${lnn}>-2 && ${lnn}<100</td> <td>label111</td> </tr> 回答1: store | 10 | i gotoIf | storedVars['i'] > -2 && storedVars['i'] <100 | true getEval| alert("Condition Fails") gotolabel | finish label | true getEval | alert("Condition Pass") label | finish You can pass any value for i. 回答2: Use Following code and let me know if still you are getting same error message ? - Created one JScript file ith following

Can Selenium IDE verify text on an XML page

霸气de小男生 提交于 2019-12-13 05:14:01
问题 I have an application that for one of its pages returns an XML string (type text/xml). The result is returned "inline" so that when I load that page in Firefox I see the XML string. I want to use the Selenium IDE plugin in Firefox to verify that some text is present on this page. However, when I try to do this with the VerifyTextPresent command I get the error Couldn't access document.body. Is this HTML page fully loaded? . Is it even possible to do this kind of check in Selenium on XML

Export test case as - Java / JUnit /Webdriver using latest Selenium IDE

梦想的初衷 提交于 2019-12-13 04:42:22
问题 Is there an option to export the tests as "Java / JUnit /Webdriver" or 'Enable Webdriver Playback' option using latest Selenium IDE ? I added this extension to my Firefox browser and I don't find these options. It actually saves the file as testName.side format. When I open this file in EclipseIDE , it is actually in a JSON format. I have a requirement where I need to quickly navigate through all the links across multiple pages and I thought SeleniumIDE will be the best option where I can use