When i enter username using sendkeys in text box as "JOHN" it enters correctly but then removes the last two characters and before going to next textbox it enters only "JO" i have written code in java and using appium.
It could help if you add clicking into the next field before the input itself.
Related
The plan:
I have a single form with a text box that I type a serial number into. [intUID]
The subforms on this same form use this to query and display related information. After I typed a serial in, I needed to refresh to get the subforms to requery, see code below. This works fine. I then set focus back into the serial number text box, ready for the next entry. This also works fine.
The rub:
I want the text box to stay fully selected when I get focus set back to it. That way, when the next serial is entered, it deletes the old one. My code does this (can be seen stepping through the code) until the "End Sub" when it unselects it!
Private Sub intUID_AfterUpdate()
'Refresh sub forms
Forms![frmMain]![q_AG_CenterLines_X subform].Form.Requery
Forms![frmMain]![q_AG_CenterLines_Y subform].Form.Requery
'Set focus back on the barcode
Forms![frmMain]![txtSchedule].SetFocus
Forms![frmMain]![intUID].SetFocus
'Select all the text in [intUID]
Forms![frmMain]![intUID].SelStart = 0
Forms![frmMain]![intUID].SelLength = Len(Forms![frmMain]![intUID])
End Sub
I am new to Python, and I am currently doing an online course on "Automate the Boring stuff with Python" on udemy.com. I have a very basic problem, and that's as you can see in the highlighted portion of the following screenshot:
Displayed output in blue
The author of this online course just presses some keyboard key on a particular line and gets the out the output displayed in blue for haRegex.search. But in my case when I press enter I don't see such an output upon pressing the enter key. Previously I used to use Spyder, and get single line execution by simply pressing F9, and the the console showed the output as OUT:abcd. But, now since updating to Spyder 4.1.3, Spyder won't display the output in the console window for a single line upon pressing F9. So, I decided using Python IDLE as suggested in the course, so can someone please guide as to how can execute a single line and get its output displayed in blue as shown in the screenshot? My code is as follows:
>>> haRegex = re.compile(r'(Ha)(3)')
>>> haRegex.search('He said "HaHaHa"')
>>>
You finish entering a line by hitting the Enter key. If the code is complete, it executes. If not, you must enter more lines. If you enter a compound statement, with a header ending with ':', you must enter an extra blank line.
If the result of execution is 'None', nothing is printed and '>>>' is printed. Otherwise the result is printed. In your example, haRegex does not match the search string, even if you think it does, so nothing is printed. Use re 'Ha' and there will be a match. In 3.9, the result is <re.Match object; span=(9, 11), match='Ha'>.
The Shell output color is set by the current syntax highlight theme. For black on white normal text, it is currently blue, as in the screenshot. To check, Select Options => Configure IDLE, then the Highlights tab, and look at the sample. If you are not satisfied with any built-in theme, make a custom theme you like better.
I am trying to create a textfield input, that forces the user to enter a email address but forces the domain (the domain logic is validated when the user enters return), so the user enters a email associated with that domain only. This needs to be very clear on the UI itself, I've tried using the UITextField but since the placeholder is cleared after the user starts editing it doesn't work so well. Here is a sample screenshot of the Slack app that shows similar textfield-
Eg. The user enters team domain, and ".slack.com" is appended to the user text.
Setting up a NSAttributedString as the textField.text from textField:shouldChangeCharactersInRange:replacementString: invocations will give you the desired behaviour.
When the user stars typing you can append the ending domain to what the user types. You can also play with attributed strings changing the color of the appended text so it looks as it's still part of the placeholder. This should be done intextField:shouldChangeCharactersInRange:replacementString:
Check the official documentation https://developer.apple.com/reference/uikit/uitextfielddelegate/1619599-textfield?language=objc
For setting the cursor in the desired position you can use UITextPosition which is extensively explained in this answer
I am using primefaces p:autocomplete component (primefaces version 3.0), its working fine , but I am getting 2 issues with it.
First is when I am puuting p:autocomplete component inside dialog box ,and if a user gets suggestions after some typing keywords, it stuckes, neither we can type anymore nor we can use backspace .
Second is p:autocomplete component suggestions are case sensitive.But user should get always suggestions whether he didnt used capital letters.
As a e.g: if a name is stored in database as "John" with capital letter, but if a user type 'jo' with small case letter he should get suggestion as a "John".
How can I solve it?
I don't have a specific answer for your first part. Possibly a PF bug. Is it just the autocomplete that sticks? Does the whole browser hang? Are you able to use other controls on the page?
As for the case sensitivity, you would control that in your autocomplete method on the backing bean. If you want to ignore case, use .toLowerCase(), .toUpperCase(), .equalsIgnoreCase() in your compare.
I want to make an edit box where an user must enter a password. When they enter the password I want the character not to be displayed, and rather an *. Are there any properties that can be set to do this, I know how to set the TEdit to remain blank while entering but I do not want that. Im using Delphi XE2
I remember from my old days in Delphi that TEdit had a property for that.
Searching on Google, I found this
Namely: "Use the PasswordChar property to create an edit control that displays a special character in place of any entered text."
I have seen that in the TEdit there is a property named PasswordChar. I assigned the * value to it and now the Edit box does not show the characters that is entered into the box