Coded UI Text not adding correctly to textbox

This error results when I try to do record/playback in Coded UI Test to add a # to phone # textbox.
Can anyone please explain what I should do to resolve?
Microsoft.VisualStudio.TestTools.UITest.Extension.PlaybackFailureException: Cannot perform 'SetProperty of Text with value "3125551212"' on the control. Additional Details:
TechnologyName: 'Web'
ControlType: 'Edit'
TagName: 'INPUT'
Id: 'corpForm_txtPhoneCorp_I'
Name: 'corpForm$txtPhoneCorp'
---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F006
Result StackTrace:
at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.SetValueAsEditBox(String bstrNewValue, Int32 nSetValueAsEditBoxFlag)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded, Int32 flag)
at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.SetValueAsEditBox(String value, Boolean isEncoded)
at Microsoft.VisualStudio.TestTools.UITesting.TechnologyElementPropertyProvider.SetValueAsEditBox(UITestControl uiControl, String value, Boolean isEncoded, Boolean useCopyPaste)
at Microsoft.VisualStudio.TestTools.UITesting.HtmlPropertyProvider.SetPropertyValue(UITestControl uiControl, String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.UITestPropertyProvider.SetPropertyValueWrapper(UITestControl uiControl, String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
--- End of inner exception stack trace ---
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, IPlaybackContext context)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, String actionName, UITestControl uiControl)
at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(Exception exception, String actionName, Object parameterValue, UITestControl uiControl)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyValue(String propertyName, Object propertyValue)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetPropertyPrivate(String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.<>c__DisplayClass3e.<SetProperty>b__3d()
at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestMethodInvoker.InvokeMethod[T](Func`1 function, UITestControl control, Boolean firePlaybackErrorEvent, Boolean logAsAction)
at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
at Microsoft.VisualStudio.TestTools.UITesting.HtmlControls.HtmlEdit.set_Text(String value)

Hi QAcodedui,
Based on your issue, you mean that when you record the textbox UI action with input a phone number text value in the textbox control and then you playback this textbox UI action, it failed for coded UI test, am I right?
If yes, I tried to add a simple textbox control in a windows form app and then I record the textbox UI action using coded UI test builder. I found that I can playback this textbox UI action successfully for coded UI test.
So if you are handing code for this textbox UI action in coded UI test, I suggest you could try to use the coded UI test builder to record and playback this textbox UI action check this issue again.
In addition, I suggest you could try to add the DrawHighlight method check whether the textbox control is found correctly.
If you are able to see cursor is highlight in the txt field it means controls is identified without error. Then I suggest you could try to add the following code for the textbox control.
For example, you can add the SendKeysAsScanCode method or the SkipSetPropertyVerification method check this issue.
(1) Playback.PlaybackSettings.SendKeysAsScanCode = true; Keyboard.SendKeysDelay = 10;
(2) Playback.PlaybackSettings.SkipSetPropertyVerification = true;
Or you can try to add more searchproperties for this textbox control and then check this issue.
Refernece:
http://blogs.msdn.com/b/tapas_sahoos_blog/archive/2011/11/07/troubleshooting-record-and-playback-issues-in-coded-ui-test.aspx
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Arabic text not displaying correctly in Win Server 2008 R2

    Hi,
    We have an .mdb database stored on our Windows Server 2008 R2 server but when we view the contents some of the text has strange characters.
    When we view the same db in Windows Server 2003 we do not have these characters. I'm not sure what exactly we need to do to correct this issue..
    Any suggestions welcome..

    Hi,
    Thanks for your post.
    When you open a Web page or a text file that contains a string of Arabic characters, the string is not displayed correctly. This issue occurs when the following conditions are true:
    The Left-to-Right Override (LRO) Unicode control character is used in the string of Arabic characters.
    You specify a font that is not Simplified Arabic Fixed.
    Please apply the hotfix below:
    Incorrectly displayed Arabic characters in Windows 7 or in Windows Server 2008 R2
    https://support2.microsoft.com/kb/976525?wa=wsignin1.0
    And check the result.
    Regards.
    Vivian Wang

  • Rollover text not rendering correctly in Safari 7.x

    Safari 7.x and my blog (NotNecessarilyPretty.com) are not getting along.
    Specifically, the rollover text in the post titles (see attached or visit site) is not rendering correctly. The right edge of the text does not change to the correct color. Have been in contact with Apple as well as the theme's developer, but have yet to be offered of a fix. 
    This blog displays correctly when accessed via Chrome or Firefox, and prior to Mavericks, Safari evidenced no problem.
    Thoughts on how to correct this?
    Thanks!

    The original screenshot didn't show here, so for anyone else reading, who may well know much more about CSS & Safari than I :
    changes to this - note the right edge
    But with word-spacing un-checked in Inspector...

  • IOS Numbers - Korean Hangul text not formatting correctly in cells

    For example, I'm trying to enter the Korean word ‘가면' into cells but the text is not grouping correctly. The final letter 'ㄴ' is not associated with the related syllable. Instead of '가면', I get '가며ㄴ'.
    I don't get this problem in others apps, only Numbers. I can copy and paste the correct form '가면' from other apps, but obviously this is a bit laborious.
    Any idea how I can fix this please?    (I've got 2 keyboards enabled, Korean and english). Thanks.

    This may be a bug that only Apple can fix.  You can report it via
    http://www.apple.com/feedback
    You might try changing Korean fonts.
    Also there are Korean apple forums where someone might know more.
    https://discussionskorea.apple.com/

  • Greek Text not showing correctly in a List Item

    I cannot get the Greek text to show correctly in a List Item (poplist). My NLS_LANG is set correctly - text items and display items show Greek just fine. I have tried changing fonts ... to no avail. Anybody have any ideas?

    Try: Store | Check for Available Downloads

  • JPanel not added correctly

    Hi
    When the following code is invoked upon an item in a combo box being selected for the first time the gPSX_JPanel is removed but sSVI_JPanel is not added until I click anywhere on the application. After this the code works fine.
    Can anyone suggest why?
    Thanks
    public void wasteWaterModel_JComboBox(ActionEvent e){
          if(wasteWaterModel_JComboBox.getSelectedItem().equals("SSVI"))
             tank_JPanels[2].remove(gPSX_JPanel);
             tank_JPanels[2].repaint();
             tank_JPanels[2].add(sSVI_JPanel);
             tank_JPanels[2].repaint();
    }

    Hi
    I have tried this:
    public void WasteWaterModel_JComboBox(ActionEvent e){
          if(WasteWaterModel_JComboBox.getSelectedItem().equals("SSVI"))
             Tank_JPanels[2].remove(GPSX_JPanel);
             Tank_JPanels[2].repaint();
             Tank_JPanels[2].add(SSVI_JPanel);
             Tank_JPanels[2].repaint();
             System.out.println("THIS WORKED");
    }and 'THIS WORKED' always gets printed. When I first select the item SSVI in the combo box then GPSX_JPanel is removed so part of it seems to work. I just can't work out why SSVI_JPanel is not added until I click anywhere on the application.

  • Text not working correctly

    Im finding acrobat pro 10 incredibly frustrating and unintuitive.  This is whats happening.  I have created a pdf to which I need to add a page of text. I choose - add or edit text box in tools. Then the typewriter bar appears so I click on the typewriter and begin typing. Then  I click out of the text box but when I go back to begin typing again I cannot. If I click on it again to try and aline cursor where I left off to begin typing again nothing happens. Instead a blue outline goes around the whole thing. I have tried with edit doc text and with edit text box.   If I click a few times it will just start a new text box which I do not want. I just want to do a simple word doc . How hard can it be???   perhaps I should go back to using office.   Please help, Im desperate to finish this project.

    I would highly recommend you do text creation & editing in Word. Acrobat is indeed not designed for this. It does offer tools that do limited adding of text or editing of text, but this is not the purpose of the application.
    As a potential fix for your current issue, after entering text with the Typewriter tool you can edit it by clicking Tools (on the right) > Content and go back to the Add or Edit Text box tool. You will see a blue border around your text, when you go to edit, double click somewhere in the middle of the blue box. Double clicking at the beginning or end may inadvertently add a new text area.  

  • Texting not working correctly

    Last week I was working with Customer Service to get texting working on one of my lines, (removed) .  In doing so Customer Service added Text Feature to this line for $10 a month.  Text feature still does not work and I now want to remove that feature on that line.
    Subject was edited for brevity by: Verizon Moderator <<>>

    rbrylawski wrote:
    Do you by any chance have the Emoji Free app on your iPhone? Other's reported this some time ago and the common thread (and solution) was to get rid of that app. Here's a link you can click on to read that thread: http://discussions.apple.com/thread.jspa?messageID=12296289&#12296289
    That isn't the problem. I have the same problem with it typing a B or M sometimes when I double tap the space bar for a period. I have never installed that app and have no reason to.

  • Why is my text not saving correctly in Acrobat Pro XI?

    I use Adobe Acrobat XI Pro. When I use the add text function, everything shows up correctly. I save the file and close it. Later on, when I open the saved file, some of the text (especially capital letters and symbols) show up as little boxes with an X in them. I have to highlight, cut, and paste everything in order for the text to show back up. Once it happens one time, it usually does not happen again. However, if I open up a document, fix the boxes, add additional notes, those notes then turn into boxed Xs the next time I open the document.
    How do I fix this?

    Hi rdh2209,
    Kindly post this query in Acrobat forums:Acrobat
    Regards,
    Florence

  • Kannada Language Text not displaying correctly in Indesign

    Hi,
    I am working on Indesign CS6, Windows operating system
    I am having a problem in Indian language kannada, some of the letters are not correctly being shown in Indesign but the same thing in microsoft office 2007 is being shown correctly i have attached the sample documents for Indesign and office 2007 with the kannada language font.
    These fonts works correctly in other text editors but not in indesign
    Even I have selected the adobe world ready paragraph composer, but the result is same letters are displayed correctly
    https://www.sendspace.com/file/bdbt99

    @Joel – my guess here is it should look like this:
    Just opened the provided docx file in TextEdit app without installing the ttf font.
    The screenshot is showing a substitute font in TextEdit.
    InDesign (with the right font installed SHREE0850.TTF) is showing 4 characters (or glyphs) for the contents of the first selectable "entity":
    And also 4 charcaters (or glyphs) for the contents of the second "entity":
    Unfortunately not all Unicode codes are visible in the Info panel. And that entity seems to be one "word". Don't know, if using the term "word" here makes any sense.
    I wanted to know, what's going on and duplicated every single "character" of the two "words" or "entities" to a different text frame:
    Still don't know what's going wrong, but maybe you can make something out of this.
    How did I duplicated the single characters? By scripting in ExtendScript/JavaScript. I selected one "entity" (is it a word?) and ran the following script:
    var myDoc = app.documents[0];
    var mySelChars = app.selection[0].characters.everyItem().getElements();
    for(var n=0;n<mySelChars.length;n++){
        mySelChars[n].duplicate(
            LocationOptions.AT_BEGINNING,
            myDoc.pages[0].
            textFrames.add({
                geometricBounds:[0,0,"50mm","60mm"]
            insertionPoints[0]
    Uwe

  • TextArea text not displayed correctly with ImageSnapshot

    I am having an issue with the ImageSnapshot.captureImage command capturing the text in a TextArea. Attached are two files illustrating the issue. The "screenshot.jpg" pic shows how the TextArea controls are displayed on the screen. The "created jpg.jpg" pic shows how the text is displayed in the jpg that is created. Below is the code that creates the snapshot, everything is pretty standard there as far as I can tell. The text is obviously not sized the same from one to the other. Any ideas whats going on here or what I can do to correct it?
    var myencoder:JPEGEncoder = new JPEGEncoder(50);
    var imgss:ImageSnapshot = ImageSnapshot.captureImage(viewstack.selectedChild, 100, myencoder);
    var fs:FileStream = new FileStream();
    var ssfile:File = File.applicationStorageDirectory.resolvePath("ProjectImages/snapshot.jpg");
    fs.open(ssfile, FileMode.WRITE);
    fs.writeBytes(imgss.data, 0, imgss.data.length);
    fs.close();
    Thanks,
    Scott

    Scott,
    Can you file a bug? http://bugs.adobe.com/flex
    Thanks,
    Jason

  • OTR text not displayed correctly

    Hi,
    I have view in which there are 3 tables with 3 colums each.
    All the data binding etc is fine and it is displayed correctly in the portal.
    My issue is with the OTR texts maintained. The text for column headings in the table is binded with the OTR texts (created through transaction sotr_edit) $OTR:<package>/<alias> in properties value field.
    We have an option to change the language in the portal. So when a language is selected, the texts for these column heading is displayed in the corresponding language selected.
    But for some langauges selected, the texts show some random language instead of the one selected.
    Any idea on how this can be corrected.

    Thanks for the reply Thomas.
    And sorry for delayed reply.
    I could see that the binding of the OTR was not correctly done with the texts.
    After i made the changes, the languages were displayed correctly.
    My concern here is that i have made the changes as this is a custom development and the issue was solved.
    But this same issue is seen in a standard component where the text was not displayed in the language selected and this issue is coming only for the users assigned to a particular role. And for all others, the texts are displayed with the language selected.
    Any inputs on this would be helpful.
    Thanks.

  • PO Item Text Not Printing correctly

    Hello,
    Per the config settings, the PR Item Text is transferred to the PO Item text while creation of a PO.
    When the PO is created, one can see the PO Item Text maintained in ME23N, but when you do the print
    preview / print output, it is not displayed.
    Few observations I would like to point out:-
    1) Tables STXH and STXL are maintained correctly for PR.
    2) Tables STXH and STXL are not maintained when the PO is created.
    3) If you do the changes in PO Item text through ME22N for say Line Item 0010 and save, then print preview / print output shows only for Item 0010 since the entries are not present in STXH and STXL.
    4) In T-code ME23N, when you go to PO Item Text tab for Line item 0010, then interestingly PO Print Preview shows only for 0010 even though there are no table entries. If you drill down for all line items, the print preview shows for all.
    Can anyone please suggest why the print preview / print output does not show for all line items and why SAP is behaving this way?
    Is there any other config settings to be done?
    Regards,
    Sanjiv

    Hi Sanjeev,
    Can you tell me what did u do for the item text to appear on the foem. Am having the same issue. Did u do any cnahes in teh form / driver program?....Pls let me know.
    What was the customisation that was affecting it.
    I am using the same
    SAPFM06P ENTRY_NEU ZMEDRUCK(standard program).
    Did u do any changes in the form? I want the item text to appear below the item no.
    Please let me know.
    Thanks
    Micky

  • Russian text not appearing correctly

    I'm new to the Mac, please bear with me.
    I am attempting to translate some code developed by a Russian speaker however the Russian text appears in weird characters.
    See this screenshot: http://i34.tinypic.com/2yk1ilt.jpg
    I've tried everything I could think of to get it to appear correctly to no avail. I've looked at other Russian code to ensure it was not just his files and it's not. I'm assuming it's something on my end not allowing it to appear correctly.
    Please help a frustrated developer get back on track

    The TextEdit option did not work however your suggestion to view the file in a browser proved successful. I switched the character encoding to Cyrillic (Windows-1251) and the Russian text appeared as it should. I was using TextWrangler to view the files set to the same setting yet it remained the same. Not sure why. In any event, many thanks for your helpful suggestions.

  • Flex 4 Spark controls text not displaying correctly on Solaris 10

    For some reason Spark controls won't render text correctly on our sparc Solaris 10 worstation.  As you can see the Cancel button and the "HELLO" label are mx controls.  The rest are spark controls and only display a square with an x inside, Any ideas?
    I've tried with both "_sans" and "_typewriter" font families.

    It's supposed to look like this:
    I'm not using unicode at all.  I initially tried to use the default font (not specifying any)  Then i tried using the device fonts "_sans" and "_typewriter" but i get the same problem.  It works fine on windows.  The weird thing is it only happens on Solaris 10 and only on Spark controls.  I am using Flash Player 10r45_2 if that makes any difference.

Maybe you are looking for