robotframework

Select Radio Button using Robot framework

别说谁变了你拦得住时间么 提交于 2019-12-12 03:33:08
问题 I have this HTML code: <td><input name="selFundDetails" type="radio"></td> I am trying to set the radio button using the keyword "Select Radio Button" to set the value to "Yes". I tried using: Select Radio Button selFundDetails Yes I am getting error as: 20160316 16:17:38.216 : INFO : Verifying element 'selFundDetails' is visible. 20160316 16:17:38.362 : INFO : Selecting 'true' from radio button 'selFundDetails'. 20160316 16:17:38.667 : FAIL : ValueError: Element locator 'xpath=//input[@type=

issue in creating custom keyword in python with Selenium2library

回眸只為那壹抹淺笑 提交于 2019-12-12 00:16:22
问题 One of my team member created a custom keyword in python. that keyword uses the Selenium2Library's keyword. Here is the code that is places in "C:\Python27\Lib\site-packages\Selenium2Library\keywords_browsermanagement.py" # Public, open and close def select_popup(self): BuiltIn().sleep(3) handles = self._current_browser().get_window_handles() self._info("Window Names: %s " % handles) self._info("Pop Up Window being selected: %s " % handles[-1]) print "in function" if len(handles) >= 1: self.

RobotFramework : cx_Oracle - FAIL : InternalError: No Oracle error?

≯℡__Kan透↙ 提交于 2019-12-11 22:49:05
问题 Couldn't find a solution for my problem using search so I created this topic. I'm having problems when connecting to Oracle database using DataBase libary and cx_Oracle module. In python import cx_Oracle works great (returns no error), but when I try to connect to DB on RobotFramework with Connect To Database Using Custom Params | cx_Oracle | 'user', 'pass', 'host/db' I get an error : FAIL : InternalError: No Oracle error? If I try to connect to database using Connect To Database |

How can I choose to show only unequal data result and minus or blind equal data result?

南笙酒味 提交于 2019-12-11 19:16:06
问题 Here's my robot code There are 22 records on both tables but only 1 record has an unequal data I would like to show that result and minus or blind an equal data result. connect to database using custom params cx_Oracle ${DB_CONNECT_STRING} @{queryResultsA}= Query Select count (*) from QA_USER.SealTest_Security_A order by SECURITY_ID Log ${queryResultsA} @{queryResultsB}= Query Select count (*) from QA_USER.SealTest_Security_B order by SECURITY_ID Log ${queryResultsB} should not contain match

RobotFrameWork how to close a pop-up

自作多情 提交于 2019-12-11 19:06:09
问题 I know how to select a frame. Select Frame css:iframe[id^="PopupBoxIframe_"] but DevExpress opens a pop-up. And I don't know how to select that pop-up It doesn't work with Select Window somehow this is the ID ctl00_aspxMasterPopup_PWH0T but Select Window searches for Title , Name or... but no ID 回答1: this was the solution. first you do an unselect, then a select, somehow that does the trick. unselect frame Select Frame css:iframe[id^="PopupBoxIframe_"] 来源: https://stackoverflow.com/questions

NoSuchWindowException after Close Window

为君一笑 提交于 2019-12-11 18:18:48
问题 I'm using robotframework with the Selenium2Library. And i've been having some trouble on handling popup windows in IE8. Try Popup Open Browser To PageXYZ Click Element XYZ Select Window name=POPUPXYZ Page Should Contain X Page Should Contain Y Page Should Contain Z Close Window Get Window Identifiers Any command I use after the 'Close Window' fails and i get the same exception NoSuchWindowException. (That shouldn't happen for the Get Window command IMO) Any help? Ty 回答1: I agree with you that

Using string replace() to get a value from a DB query result leads to problems

自闭症网瘾萝莉.ら 提交于 2019-12-11 17:53:36
问题 I am querying DB and want to validation my output. The result from DB is coming in the manner -> (('ABC',),) and I want to validate it with string 'ABC', but I am unable due to extra characters received in my db output . Can anybody help me with how to remove extra characters that are coming as output from DB? I tried using Evaluate function: Evaluate '(('ABC',),)'.replace('(',' ') I need result as just ABC. 回答1: Do not do that - treat the response as a string, and try to get you data out

Robot Framework - Change variables depending on input

十年热恋 提交于 2019-12-11 17:28:31
问题 I have the following css selector ${Table_Row} css=.tr > td:nth-child(2) This selector will get me the first instance in a table. The problem is that the table may contain hundreds of instances and I don't want to have hundreds of variables. How can I make the variable more dynamic, that I can pass another variable to determine the 'nth-child' count, without making it a keyword? Here is a python example of what I mean: table_row = ".tr > td:nth-child(%s)" Then if I call this variable table

Directing robot framework results using Eclipse

眉间皱痕 提交于 2019-12-11 16:17:49
问题 I'm currently using the Eclipse RED plugin for my robot framework automation efforts. How do I direct the test results to a particular folder within my project? When using the terminal, I can direct to the "Results" folder using the following: robot -d Results Tests\MyApp\AppDriverScript.robot However, I'm not sure how to direct the log & report files when using the Eclipse IDE using the Run command (Ctrl+F11). 回答1: In the RED user guide there is a section about launching locally. In the

How to download a file with phantomJS using Robot Framework?

邮差的信 提交于 2019-12-11 15:25:29
问题 I am using Robot Framework with PhantomJS (headless browser) and want to download a file. But PhantomJS is not having any desired Capabilities or options to set the preferences as we do in Chrome. Looking for any suggestions or other options to download a CSV file using PhantomJS with Robot Framework. 回答1: As you highlighted that downloading files is not the issue. Below you'll find an example of Robot Script that starts Chrome in Headless mode. *** Settings *** Library Selenium2Library Suite