I am trying to click a checkbox which is present inside a frame but i always end up with this error message(Element not appeared for xyz seconds). Can anyone please help out
My code is as follows:
*** Test Cases ***
Test
Select Frame (Frame name)
Wait Until Page Contains element (locator with xpath) 10s
Select Checkbox (locator with XPath)
Unselect Frame
I even tried using
Wait until element is visible but its still the same error
Related
There are 3 set of records which I want to capture from an external excel sheet to follow the data driven approach. Scenario: There are 5 fields in the online screen: Grp No/Blclass/Bnk Code/Brnc Code and Acct No.
Now upon providing the grp and blclass and click on "Create", then the other 3 fields will get enabled for data input and when data input done for all fields, the clicking on submit will successfully complete the transaction input for a particular row from external excel.Then it will pick the second record from excel and do the same and so on... Now the scenario is Suppose for the second record,if the acct no is wrong, then it will show an online error and will not allow user to "Submit". At the same time, the header section(grp and billing class) will not be enabled for inputting the next data until user click the exit button because of that online error.
Now I am new in Robot Framework and tried with "Run Keyword If" but somehow it did not work.
Here are the code that I have used. If all the data in the excel are correct, then it will input the transaction one by one for all rows. But,if any wrong data found, my purpose is to skip that input and proceed for the next record as below.
Objective after clicking Submit Button:
If error found, click Exit button and input the next record - as without exit, the header fields will not be enabled for data input
Else input the next record as per loop
You can try :
Run Keyword If '<condition1>' == '<value1>'
... ELSEIF '<condition2>' == '<value2>'
... ELSE <value3>
This works for me.
I'm trying to display the current time every second, but the current time shows up on only 1 row and it seems to delete the last result.
I tried doing it like this, but this only sets the width and height for the box that contains the information.
DISPLAY currentDate + currentTime FORMAT "x(50)" WITH 5 DOWN 5 col.
Here's what I would like:
do while true:
display now with 5 down.
pause.
down.
end.
The DOWN command forces the frame to move to the next iteration. Whether or not you need it depends on the nature of the block that the frame is scoped to. (DO blocks need it.)
In the Expedia.com, on flights section, there're two inputs (departing and returning) for handle dates.
I'm not being able to get the right element so that I can click and sendKeys to it. I've tried many types and only using the place holder it works for returning input, but not for departing.
I'm using this: #FindBy (xpath = "//input[#placeholder='City or airport']") but it's clicking on the returning instead of departing.
So, what can I put in this locator so that I can get the right one? I've tried also with index [1] or [2] but didn't worked as well.
In case you want to insert the Departing date the input can be selected by #flight-departing-flp
Flight returning input element can be selected by #flight-returning-flp
Flying from airport field can be selected //input[#data-airport_code_element="flight-origin-flp-airport_code"] etc.
I had to import data in hcmposition table.
however, the positionid look like 000001 and I have used X++ to insert data into hcmpostion from an external table.
after the data is inserted, I tried to create a position form AX position form and I got the following error
Cannot create a record in Positions (HcmPosition). Position: 000001.The record already exists
in order to fix the issue I have tried to update the SYSTEMSEQUENCES table by updating the nexval field to be equal the maximum recid +1 available in hcmpositon.
however, I am still getting the same error.
You don't need to change nextval in the SYSTEMSEQUENCES table - it has a different purpose. Instead, try the following:
Open Human resources > Setup > Parameters > Human resources shared parameters > Number sequences.
Right-click the Position number sequence code, select View details.
Expand the General tab page, modify the Next number to be released from the number sequence.
Click the Status list button in the action pane to make sure it doesn't contain numbers that have already been used.
I have a form in which I have two drop downs.
A decision in one fires the other.
The basic rule is:
Drop Down A -> select items 1,2 or 3. Drop down B loads list 1
Drop Down A -> select items 4,5 or 6. Drop down B loads list 2
This works fine on first load and save of the form. The problem is when I edit. Lets say I selected and saved item 3 in Drop Down A.
On Editing:
If I change Drop Down A, the select changed event fires every time I change it except when i reselect what was saved.
It leaves me in a situation where I can choose 3 in Drop Down A but are left with the wrong list in Drop Down B as the event doesn't refire on that selection.
I've tried every trick I can think of but I can't seem to get around this issue.
Anyone have any suggestions?
(We've tried radiobutton lists and its the same issue. Setting the value in a variable and attempting to reset the control to clear what it thinks the original value is doesn't work either.)
Not sure that i've understood your problem completely, but consider to add an extra blank or dummy item(-- please select --) to your list and have that be the default selected item. That way as soon as a user selects a valid item it will always have changed from the original item.