Cross browser testing:Click action on UITestcontrol got using ExcuteScript API is not working.

Hi,
For one of the web control,I am using ExecuteScript API to get the UITestControl as explained in this link (http://blogs.msdn.com/b/visualstudioalm/archive/2013/01/18/introducing-jscript-execution-on-internetexplorer-and-crossbrowser-in-coded-ui-test.aspx
)and trying to perform click action on the control.It is not performing the click action on the control but script status is success.
Problem is seen only with specific Overload of Mouse.Click().Here I am constructing the control using bounding rectangle dynamically.
The API I am using is
 Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl, MouseButtons.Left, ModifierKey.None, clickablePoint );
Point Caluculation is shown below:
clickablePoint  = return new Point(boundingRect.Width / 5, boundingRect.Height / 4);
I tried to debug the code and found that Selenium web driver is throwing null reference exception while using this API for Left button click action.Could you please check the problem and fix it.So that I can
use this API as per my requirement.
Regards,
Nagasree.

Hi Nagasree,
Latest version of Chrome and Firefox supported by cross browser testing are Chrome version 38.0.2125.111 and
Firefox 33. So please make sure the Chrome and Firefox is supported by cross browser testing
Whether this API: Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl, MouseButtons.Left, ModifierKey.None, clickablePoint ) worked fine with IE browser when
you run this test?
If the same API worked fine on IE browser but not on Chrome or Firefox browser, “Q AND A” tab in this link:
Selenium components for Coded UI Cross Browser Testing is a better place for resolving this problem.
It seems that you want to click the control using bounding rectangle, then you don't neet to use MouseButtons.Left and ModifierKey.None, you can use such API:
Click(UITestControl, Point) or
Click(Point) directly.
You also can try to use the following code snippet, maybe it can help you.
Rectangle r = TargetControl.BoundingRectangle.
Mouse.Click(new Point(r.X + r.Width/2, r.Y + r.Height/2));
Thanks,
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

  • Cross browser testing : Modifier Keys playback actions not working in chrome and Firefox

    Hi,
    In my work flow I have to select multiple items in list.So I have recorded 'Ctrl+Click' action to select list items.In Chrome and Firefox it is not selecting multiple Items.
    Even Ctrl+A,Ctrl+C,Ctrl+V also not working in chrome and Firefox.Complete modifier keys support is not observed in chrome and Firefox.Let me Know how to automate modifier keys actions in cross browser?
    Regards,
    Nagasree.

    Hi Nagasree,
    Welcome to MSDN forums.
    First,please make sure the Chrome and Firefox is supported by cross browser testing.
    Latest version of Chrome and Firefox supported by cross browser testing are Chrome version 38.0.2125.111 and
    Firefox 33.
    I doubt whether Chrome and Firefox in cross browser testing don’t support automating modifier keys or there is anything wrong on it if you are using supported browser. Since this issue is related to the Extensions tool
    Selenium components for Coded UI Cross Browser Testing, if possible, I suggest you post this
    issue here, click “Q AND A”, and then you could post this issue there, you would get dedicated
    support there.
    Thanks for your understanding.
    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.

  • Cannot install Selenium Components for Cross Browser Testing extension from Visual Studio 2013

    Hello,
    I am having some issues with installing Selenium Components for Cross Browser testing.  I keep getting this error everytime. Yes, Visual Studio 2013 has been registered with a product key. However, I cannot seem to bypass this error. I tried to install
    from http://visualstudiogallery.msdn.microsoft.com/11cfc881-f8c9-4f96-b303-a2780156628d and from Tools->Extensions and Updates from Visual Studio 2013. It just does not work. I have a copy of Visual Studio 2013.  Yes, I already have Visual Studio
    2012 Ultimate and Visual Studio 2013 Ultimate installed on my machine. What am I missing?

    Hi Antwan,
    Please uninstall the VS, then reinstall it.
    On the other hand, this issue is in the extension, I suggest that you should post it in
    Selenium components for Coded UI Cross Browser Testing site for efficient response. (Q AND A)
    Thanks
    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.

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...) Thanks,

    Hi O_H_I_O,
    Have you got an error code ?
    Considering it is a brand new machine ,please update the machines .To get a better performance of the machines ,we should always keep it up to date .
    There is a possibility that the DVD/CD-ROm drives driver is old or has corrupted .Please open the device manager , update or reinstall the driver to have a check.
    Apart from this ,we can run the built-in tool to a diagnostic :
    Control Panel\All Control Panel Items\Troubleshooting\All Categories\Hardware and Devices
    We also can run the following fixit tool to have a check.
    Fix problems with CD or DVD drives that can’t read or write media
    http://support.microsoft.com/mats/cd_dvd_drive_problems
    Best regards

  • Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    ''duplicate of https://support.mozilla.com/en-US/questions/905881''
    Hey, I'm doing some cross browser testing and i want to know Is there any difference between the behavior of Firefox in an operating system 64bit & operating system with 32bit. (like windows7/windows vista...)

    Hi Kossa,
    You can also check if the issue occurs in
    Clean Boot. If the issue disappears in the Clean Boot environment, you can continue to narrow down which entry is causing the issue.
    Besides, uninstall it and re-download
    a fresh copy of FireFox to check the result. If the issue still exists, create a new user account to see if it occurs.
    If the issue persists, you can contact Mozilla Support directly and use Internet Explorer (IE) during the time.
    J
    Please Note: The third-party product discussed here is manufactured by a company that is independent of Microsoft. We make no warranty, implied or otherwise,
    regarding this product's performance or reliability.
    Regards,
    Linda

  • In Oats Drag and Drop Api is not working in Firefox Browser

    To Write OAts test for Drag and Drop functionality
    we are using "dragTo" API.
    Ex :
    web.image("/web:window[@index='0' or @title='Fusion Applications']/web:document[@index='0' or @name='aqizmnwha_1']/web:img[@absoluteLocator='" + sourceIndex + "']")
                     .dragTo("/web:window[@index='0' or @title='Fusion Applications']/web:document[@index='0' or @name='aqizmnwha_1']/web:img[@absoluteLocator='" + targetIndex + "']");
    This Api is not working in firfox.(works in IE browser).
    Is there any other way we can test DnD functionality in firefox and IE?
    Thanks in Advance!
    Thanks,
    Siddi

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • My daughter's iphone got wet and camera does not work. She lives in Madbury, NH 03823. Where can she take it for repair?

    My daughter's iphone got wet and camera does not work. She lives in Madbury, NH 03823. Where can she take it for repair?

    Yes it does, although I wa a minute faster than you. To see if someone is parroting you, or that they just posted at the same time, look at the head of the post and it will show you the data and time of the post and who they were responding to. Looking at that first saves some misinformation in future posting.
    You'll see some posts where there will be 5 posts all in the same minute sometimes. Answer posts late at night and you won't see as many.
    BTW, I clicked the Like button on your post where you gave the link for the users manual.

  • What key(s) do i type to change language from english to other? i am writing s story in dual languages. i was told to click command and space bar together but it is not working.

    what key(s) do it type to change language from english to other? i am writing a story in dual languages. I was told to click command and space bar together but it is not working.

    Command Spacebar opens Spotlight as you have found out. If you want to change languages you need to say what app you are using to write the story in, I'm guessing you are using Pages or MS Word. If that's the case
    Pages: Open Inspector - Click the T tab - Click Language and change your language.
    MS Word: Tools Menu - Language - Choose your language.

  • On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    On my MacBook Pro, sometimes when I click to close tabs in Safari the button will not work.  I have to click on some other part of the screen and then it will.  This happens in other programs like Word/Excel for changing font, etc. Solution/Suggestions?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH4373

  • I got my Imac and Trackpad in may so its new and the batterys have run out on the trackpad, so i have put new batterys in and its not even turning back on i have tried the batterys the other way round ( i used duracell) and still not working, HELP

    I got my Imac and Trackpad in may so its new and the batterys have run out on the trackpad, so i have put new batterys in and its not even turning back on i have tried the batterys the other way round ( i used duracell) and still not working, so i put the old batterys in and it still wont turn on. I am getting so angry woth apple things, the make it sound better than it is and over pice it, i paid over a grand for my imac and it dont even come with a cd SLOT. Please can some one help!

    Edge has very clear restrictions, one being that you must have 6 months of clean payment history which you don't. Either wait until April 14, or good luck at Sprint.
    I am unsure how it can be determined the payment mix up was the fault of CS, but regardless, the mix up was done. There can be any number of reasons why a payment could be missed without any fault on your part, however you are still the responsible party for the account and must live with the repercussions.

  • Hi, i would like my membership cancelled. I got it yesterday but its not working the way i wanted it to work. How do i go about that i getting my refund as its before 30 days.

    Hi, i would like my membership cancelled. I got it yesterday but its not working the way i wanted it to work. How do i go about that i getting my refund as its before 30 days.

    Hi kondwastefstef,
    I'm sorry that your subscription didn't meet your needs. Please contact Adobe Customer Support via phone or chat; they should be able to cancel your account and process your refund. Here's the contact information: Contact Customer Care
    Best,
    Sara

  • My Ipad Screen got struck and Ipad is not working .On using updated IOS 7

    My Ipad Screen got struck and Ipad is not working and not allowing to shutdown also.
    Only SIRI is working. and that also not able to open any app. Today Morning I updated IOS 7. It was working fine for a while. WHen I tried to Minimize one of the app using fingers by multi touch  it got struct. Now neither app closed completely not screen is moving. Just got struck.
    Please check regarding this issue and provide me solution

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Action & Droplet "save as" vs "save as web" not working - Possible bug?

    Before I state the issue, I am running the latest updates and have tried this in Photoshop CS4 & CS5.
    I believe this is a bug in Photoshop, unless someone can get this Action & droplet to work right.
    Here's the issue:
    I create an Action with the "Save as Web & Devices" and save the image as a PNG. Then create a Droplet and set the destination as "Folder" with a destination different from the source file, and check Override Action "Save As" Commands and use File Naming with Document Name + _H50 + extension (example: MyFile_H50.gif). The file naming convention I made doesn't carry over to the processed images.
    However this droplet will work with the Action when I use the "Save As" command, but not the "save as web & devices" option. Has anyone came across this issue or know how to fix it?
    The difference between "save as" and "Save as web" is a 3kb files size plus the "_H50" naming convention is not used.
    Here's a detailed process of my action and creation of the droplet:
    CREATION OF ACTION:
    1.) I have a .TGA file open with alpha channel layer.
    2.) I set the selection to the alpha channel, go back to the layers panel, double click layer, Set backgound to Layer 0, Inverse the selection, delete the background, trim image to transparent pixels, change image size to a fixed height of 50 pixels.
    Here's the variable step that works or doesn't work depending if I choose "Save as" or "Save as Web & Devices"
    3.) File > "Save as Web & Devices", save image as PNG w/ alpha, and select my "processed images" folder & save, close original  image without saving.
    CREATION OF DROPLET:
    1.) Save droplet location, Play action with include subfolders, Suppress file open options dialog, Suppress Color profile warnings.
    2.) Destination: Select a folder
    3.) Use File Naming: Document Name + _H50 + extension
    4.) Save log errors.
    Next I drag some images onto the droplet, it processes the images into the folder but doesn't use the File Naming convention.
    Now, if I use the "save as" command in the action and create the droplet the same way, it works!
    The difference between "save as" and "Save as web" is a 3kb files size plus the "_H50" naming convention is not used.
    What the heck is going on? Please Help
    -Josh

    The following example action and droplet may give you
    an idea how to do this with one droplet.
    The idea is to make an intermediate folder to save the renamed psds to.
    Then use save for web to save the psds as pngs in a different folder.
    1. Make a folder to hold the psd files (temp psd in the example droplet)
    2. Open one of your targa files and record the steps to prepare your file
        (loading the channel selection, trim, etc)
    3. Save your file as a psd.
    4. Now save the file using save for web to the folder where you want your
    final pngs to be (saved for web in the example action) and don't change
    the file name when saving.
    5. Go to the folder where you saved the png using save for web and delete that file.
       (so you don't get an overwrite message when using your droplet)
    6. When creating the droplet, specify the name you want the saved pngs to be and
       choose the destination folder where the psds will be saved. (temp psd)
    The end result of all this, should save your files, renamed as psds (to a folder)
    and save for web should save the renamed psds as pngs, to the place
    you saved the file using save for web.
    One drawback of all this, you end up with a folder full of psds.
    You could just delete the psd files inside the folder after each run.
    (click on the images below to enlarge)
    Hope this helps.
    MTSTUNER

  • How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. I tried RIGHT-CLICK and the "open dowloading folder" or something does not work! P

    How can I OPEN files I just downloaded? They're on the DOWNLOADS screen of Firefox but I can't open them even after double-clicking? And they're not on the FOLDERS as well. Even the right-click is not working ... the "open containing folder" does not work.
    == This happened ==
    Not sure how often
    == ALWAYS! ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)

    Open Containing Folders is never active.

  • The Right-click context menu on bookmarks on my mac is not working

    Hi. After recently upgrading to FF 3.6.12 on my Macbook Pro running OSX 10.6.4, I can no longer right-click on my individual bookmark names, and get the context menu to come up. It will simply not appear in some areas, and in other areas it works wrong, and in one area, it works correctly. For example:
    1. If I choose Bookmarks from the top menu, and right-click on a bookmark name, the context menu does not come up and FF simply opens that webpage the same as if I had left-clicked on it.
    2. If I right-click on a Bookmark from the toolbar menu on the far right, by clicking on >>, in this list, if I right-click, nothing at all happens. The context menu does not come up and it also does not go to the webpage as it shouldn't.
    3. Now, if I right-click on a bookmark name on the Bookmarks Toolbar running horizontal right above the Tabs, these bookmarks do behave properly. The normal context menu comes up.
    So as you can see, I'm getting 3 different behaviors when right-clicking on bookmark names in 3 different areas. Help....
    Thanks...

    I have my bookmarks in lots of folders on the bookmarks toolbar, if i want to right click on any bookmark in a folder to get the context menu i cannot get the context menu to appear. I thought it was me but I think this is the same issue described above. I would really like to have this working.

Maybe you are looking for