I am automating a form using selenium in Internet Explorer 11. There is a field which accepts 5 characters max. When I try to enter 2 characters the cursor still shows in that field and enter data of other field and no error shows for this. It is working fine in other browsers.
E.g Field 1 (max accept 5) e.g sendkeys(12)
field 2 e.g sendkeys(456)
When I run code in field 1 it insert 12456 and insert nothing in next field.
Related
while using the inputNumber field of antd, the data that i enter is changed to less than 2 or 1 without doing anything.
eg: if I enter input as 5, on the next moment it changes to 4, sometimes it goes upto 3 or 2. But this issue occurs randomly only.
Anyone please help
I need the correct value that I enter the input field
I have the following template set up on bartender
Product Code: Barcode: Quantity:
0001 1234 0
Idea
The page is set up with 1 column and 3 rows. Next, select maximum of 3 records from record picker. The 3 records chosen will then be automatically filled out onto the page.
(Records are from SQL Database)
I have a form set up with a record picker. If I choose 3 random records from the database. The output would be something like this:
Product Code: Barcode: Quantity:
0001 1234 0
0002 1235 0
0003 1236 0
My Question is
when pressed Print. How can I adjust the quantity for each record?
Images:
Data Entry Form
Data for each row
Page template
There are two solutions for your problem. The first and my preferred is to add a column for quantity. Simply right click on the record picker and choose properties. go to the tab Record Picker and search for the option "Selector Column". If you change this to Quantity, you will be able to add a unique quantity for each record and you can remove the number input box.
The second solution is to use the number input box. Simply linking it to the copies field should do the trick but you will need to run the form multiple times to print every record since it will close after every print. To link the field just look to the left side of the screen when your in the form builder and drag "copies" on the number input box. To solve the issue of the form you can use an option "repeat data entry until cancelled. This will reopen the print form until you close it. you can select this option in the print screen (ctrl+p) and select Options in the lower half of the screen. Select the option "repeat data entry until cancelled" and you're set.
I have a table in a webpage and some ids get created which are hyperlinks and I want selenium webdriver to ask me for input as the input which is a hyperlink keeps on changing
Table IN WEBPAGE
Header Name
8277 tEST
23 YT
1 Y
23 55
The numbers under header are hyper links which keeps on changing and i want selenium to ask me for input. xpath for headers are given below
xpath = //*[#id="ctl00_ctl00_cph_base_cph_pgf_cph_ctl00_gvLastPricings_ctl03_lbPricingDetails"]
//*[#id="ctl00_ctl00_cph_base_cph_pgf_cph_ctl00_gvLastPricings_ctl04_lbPricingDetails"]
//*[#id="ctl00_ctl00_cph_base_cph_pgf_cph_ctl00_gvLastPricings_ctl05_lbPricingDetails"]
//*[#id="ctl00_ctl00_cph_base_cph_pgf_cph_ctl00_gvLastPricings_ctl06_lbPricingDetails"]
How to do the above
In a VB console application, how do you automatically put a string in the cursor? example:
ask for numbers
user inputs 5 15 five
show error
show back "5 15 five" back to the user so he can change five to 5 or any other integer.
I am using third party tool "gridlookupedit" of DevXpress in my application. I have loaded the gridlookupedit control on the key Down event of it. Now if i type a character "A" the dropdown gets loaded with all values starting with "A". Now a step ahead i want to load the GridLookUpEdit only after two characters.
for rg: the control must load values only when user types any two characters. If user types "A" it should not load. if user types "Ab" then the control should be loaded by the values starting with "Ab".
how can i do this?
On your Key Down event I guess you've got some code that populates gridlookupedit? If so just put a if around your code to only update if the length is grater than 1
If gridlookupedit.Length > 1 Then
' Update List
End If