Contributions
Can I use variable in FindObject operation (Keyword Test)
Hi, I am writing a keyword test to find an object using "find object" with the criteria of contentText = "Manual entry, manual allocation" However, I would like to change it to a variable, so that I can make it data driven. Is it possible? If not possible for keyword test, can I do that with a simple script? ThanksSolved868Views0likes2CommentsRe: Web dropdown menu
Thanks I have changed the p to narrow down the search area. I managed to find the object but now it saysThere was an attempt to perform an action on a zero-sized window. The drop down list does not hold up, which it is very hard to map the object. That is why I used the find object method. If I map the object with the object spy, it would say the object is not under the object tree. Is there a way to solve this problem? Here is my adjusted code, def my_test(): # Find all enabled buttons in the Replace dialog p = Aliases.browser.pageLogon.sectionShellSplitCanvas.frameApplicationActivitytypeMana.frameIframeid.activityTypeCat_dropdown_var my_choice = p.Find("contentText","Manual entry, manual allocation",2,True) if my_choice.Exists: Log.Message("FOUND IT!") my_choice.Click(-1,-1) else: Log.Message("Cannot find the menu option")705Views0likes0CommentsWeb dropdown menu
Hi, I am trying to write a script (Python) to - click the down arrow button - select one of the options in the drop down menu. Here is my script. It failed with the log saying "The object does not exist. See Details for additional information." I am a Python beginner, it would be great if someone can help. def my_test(): p = Aliases.browser.pageLogon.sectionShellSplitCanvas.frameApplicationActivitytypeMana.frameIframeid.textbox_activityTypeCat p.Click() my_choice = page.Find("contentText","Manual entry, manual allocation",10,True) my_choice.Click()Solved719Views0likes2CommentsRe: Checkpoint image rename
Hi Alex, My test is a keyword test (below image). It is to test if all the required users have been created in the system. I have an excel sheet listed all the user IDs and passwords for data loop variables. I managed to do that and everything works. On top of that, I want to take screenshot of the home page for each of these users, because I found out that some of them have empty box with unloaded applications (see below images). I used checkpoint to do that but in my log file, the naming makes it very hard to find which is which user's home page. I would like to ask if there is a way to rename those images with username variables. thank you Below is my keyword test.1.7KViews0likes5CommentsRe: Checkpoint image rename
Hi, I am not looking for searching an image. once the user logs into the system, I would like to capture that home page. Since I am testing over 50 users, I would like to rename all the images with the username which are variables from an excel. Thanks.1.7KViews0likes7CommentsCheckpoint image rename
Hi, I am working on a data loop test, and want to capture all the images with a specific name using variables. How can I do it? - user and password (data loop variables) - login to the system - capture the home page - log out So i want the picture to be the username, how can I do that? ThanksSolved1.7KViews0likes9CommentsRe: How to empty all the content in a column in excel (Python Script)
I have used a IF...then...statement for this. Data Loop A: - user name "table data variables" - password"table data variables" - enter login SAP >>>data loop B: >>>>if excel column A (variables) equals to user name (previous data loop), the checkpoint if the page contains column B (variables) - log out SAP Hope it helps other people1.1KViews1like0Comments