Cross browser differences
The jsp pages in our project work fine in IE browser. But in Netscape browsers, the alignment is all messed up. We are at the end of the project and we dont have time to change all the jsp pages. I was told that there is some kind of javascript to handle situations like this. Including that javascript in the jsp pages essentially solves this problem. I was wondering if this is true? Please share your knowledge on this topic. I really appreciate your help.
Thanks,
Ravi.
Hi,
it depends on how you have structured your code. If you have done a css for the layout, you can know what browser is in use and switch to a specific external css. Something like:
if (document.layers)
document.write("<LINK HREF='netscape.css' REL='stylesheet' TYPE='text/css'>")
else if (document.all)
document.write("<LINK HREF='stile.css' REL='stylesheet' TYPE='text/css'>")
else if (!document.all && document.getElementById)
document.write("<LINK HREF='mz.css' REL='stylesheet' TYPE='text/css'>")
else
document.write("<LINK HREF='xx.css' REL='stylesheet' TYPE='text/css'>")
and so on...
Sometimes the problem is in using special costruc that works fine only in IE (for example): this is quite more complicated to solve, becouse you have to find a different solution.
There isn't any "general" solution to cross browser compatibility; usually it is a good idea to start developing in order to achieve it and not to demand it in a late stage.
Similar Messages
-
''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 -
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 -
Cross-browser compatible flash embedding in html5
I am a newbie with flash with less than a year of experience and this is my first post in this forum.
I recntly converted my web site from xhtml1.1 to html5 and when it came to flash I was a bit stumped.
Then the light came on, why not use html5's new and powerful JavaScript engine and I did.
I was able to use JavaScript to embed the flash object which tested with IE8, FF3.6.4, Safari 5.0, Opera 10.53, SeaMonkey 2.4, Chrome 5,6 and maxthin 2.5 & 3.0.
I wanted also to keep away from making a http call for swfobject and use the html5 enviornment.
Therefore, I used the following and placing the JavaScript function within the <head>..</head> tags just above the <body> tag.
My web site is multi-lingual currently with/for English and German with French and Spanish to follow; the html5 used is simple and it W3C validates it as html5.
Using the english version this was placed within the head tags
<script>
//<![CDATA[
document.write('<object width="100%" height="100%" type="application/x-shockwave-flash" data="english.swf" >');
document.write('<param name="classid" value="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" />');
document.write('<param name="pluginurl" value="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24" />');
document.write('<param name="movie" value="english.swf" />');
document.write('<param name="quality" value="best" />');
document.write('<param name="menu" value="false" />');
document.write('<param name="allowFullScreen" value="true" />');
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="bgcolor" value="#000000" />');
document.write('<param name="scale" value="noscale" />');
document.write('<param name="wmode" value="window" />');
document.write('</object>');
//]]>
</script>
I have also noticed that an iPAD visited my wbe site indicatingn to me that it works on an iPAD and by virtue that this method of flash embedding works with the above borwser types; it is I think a cross-browser method.
To see this in action feel free to visit my web site and look at the index.html, english.html or the german.html code to see this implemented; the web site is www.mirana.net
Now my questions is:
1. is this a good method and why? or why not?
2. can this be placed mainstream ?
Thank you for reading this and be merciful in responsesHi
Thanks for replying, I appreciate that.
I do agree that that an initial view may appear as the 'standard flash embed' but in this case it is not by virtue of its location being between the head tags.
There is IMHO considerable difference placing this method between the head tags as compared to placing in/on the body. Try it out yourself in html5.
1. it valdiates
2. reduces http calls
3. appears to load faster but that can be purely dependent upon the visitor's internet connectivity
4. fundamentally works with all browser that I tested it with
Traditionally with flash embedding there was an issue with/in validation of the html document and this goes back to 2002 when the 'Satay' method corrected this. As I now understand it with the release of CS5 html that is published uses the object method of embedding.
The fact that an iPAD was on my web site and viewing pages certainly was a surprise, I only wish I had an iPAD. -
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. -
Hello, I have been searching for results for sometime and
decided to come here to ask my question.
Now, I know these questions have been asked alot of times but
I have no good results.
My question:
Why does every website I make look Good in IE and bad in
firefox?
or vise versa. I can make it look good in firefox but looks
bad in I.E.
I mean I layout the design perfectly in Dreamweaver 8 and it
looks sweet in I.E. preview in Firefox and it makes me not want to
make layouts any more..
What do I do? And how do I fix this?
Currently I am making a "Liquid" Layout, using "%" for my Div
and Tables, and they seem to be ok in I.E. like I stated, but still
when I view in firefox, everything is to the left or off centerd or
just plain nasty.
Anytips? I got the whole Screen Resolution trick down, now I
just need professinal tips on cross browser design.
I don't have my site hosted yet so I cannot give you a
preview. I am sure you know what I am talking about as well.
I searched google and many forums (including this one) and
came up empty handed.
What am I doing wrong? Do I just manage the site as it is
even though that the website is 5px off to the right/left in
firefox and looks great in internet explorer.
I want to provide a clean site for both browsers with out
having them redirecting.
Which I can redirect one "If I.E." to a page, and redirect FF
to a diffrent. But that's a hassel in my view.
Seriously, what do I do?
Thank you for your time and any response.As Jo mentioned, it would be too hard to give you advice on
your page
without seeing the code (or even better a live version).
The better approach is to design for Firefox and then fix the
errors that
are produced in IE.
Are you using a full doc type? That is important, because if
not, then IE
will go into quirks mode, thinking it is rendering your page
correctly, but
FFox will show it out of wack.....
are you using divs of 'layers' (absolutely positioned divs)?
As you can see there are many things that may be wrong with
your site- so
without seeing it, it's too difficult to offer specific
advice.
Have you been through the css tutorials at the Adobe site
(link in my
sig)..... they are very helpful - starting with beginner
tutorials and
moving on from there.
Nadia
Adobe® Community Expert : Dreamweaver
CSS Templates |Tutorials |SEO Articles
http://www.DreamweaverResources.com
http://www.csstemplates.com.au
http://www.perrelink.com.au
CSS Tutorials for Dreamweaver
http://www.adobe.com/devnet/dreamweaver/css.html
"BadBlue" <[email protected]> wrote in
message
news:[email protected]...
> Hello, I have been searching for results for sometime
and decided to come
> here
> to ask my question.
>
> Now, I know these questions have been asked alot of
times but I have no
> good
> results.
>
> My question:
>
> Why does every website I make look Good in IE and bad in
firefox?
>
> or vise versa. I can make it look good in firefox but
looks bad in I.E.
>
> I mean I layout the design perfectly in Dreamweaver 8
and it looks sweet
> in
> I.E. preview in Firefox and it makes me not want to make
layouts any
> more..
>
> What do I do? And how do I fix this?
>
> Currently I am making a "Liquid" Layout, using "%" for
my Div and Tables,
> and
> they seem to be ok in I.E. like I stated, but still when
I view in
> firefox,
> everything is to the left or off centerd or just plain
nasty.
>
> Anytips? I got the whole Screen Resolution trick down,
now I just need
> professinal tips on cross browser design.
>
> I don't have my site hosted yet so I cannot give you a
preview. I am sure
> you
> know what I am talking about as well.
>
> I searched google and many forums (including this one)
and came up empty
> handed.
>
> What am I doing wrong? Do I just manage the site as it
is even though that
> the
> website is 5px off to the right/left in firefox and
looks great in
> internet
> explorer.
>
> I want to provide a clean site for both browsers with
out having them
> redirecting.
> Which I can redirect one "If I.E." to a page, and
redirect FF to a
> diffrent.
> But that's a hassel in my view.
>
> Seriously, what do I do?
>
> Thank you for your time and any response.
> -
Need help with Rollover Image cross browser problem
Hello,
I am having a cross browser problem with my websites rollover nav links. The trouble is, while they work perfectly fine in IE8 and IE9, I’ve also attempted to use them through Opera, and they simply don’t work. They don’t link nor do they do their rollover effect. And I was trying to figure out what I have done wrong. Currently the site is not completed, but the first two pages are, the “news” and “about me” pages are currently (as of right now) working. The address to the site is below.
http://maxmetal.xsustudios.com/index.html
I hope that someone can help me with this, if needs be I can put the code for the CSS and HTML into this part if it will save some time for everyone. Sorry too about the PNG images, I have to change those over to semi-transparent GIF’s yet so the site does take a while to load…
Hope someone can help me with this!
PALADINWhen I disable CSS in my browser, the rollover buttons work just fine. This tells me your CSS is messed up and you've layered something over your menus which is making them inaccessible to users.
I noticed you've applied relative positioning to just about everything on your page. Why? Default CSS positioning (unspecified or static) is all you need for 98% of layouts.
Learn CSS positioning in 10 Steps
http://www.barelyfitz.com/screencast/html-training/css/positioning/
My advice would be to start over using a pre-built CSS Template with all the divisions and columns you're likely to need for this project. Below are some good links to get you on the right track.
For professional CSS Templates that are rock solid & perform well in all browsers, visit Project Seven:
http://www.projectseven.com/products/index.htm
Ultimate Multi-Column Layouts
http://matthewjamestaylor.com/blog/ultimate-multi-column-liquid-layouts-em-and-pixel-width s
Not Just a Grid CSS Framework
http://www.notjustagrid.com/demo.asp
EZ-CSS Templates (watch the screencast to see how it works)
http://www.ez-css.org/css_templates
Dreamweaver CSS Templates for beginners
http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
New DW Starter Pages
http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
Good luck with your project!
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
http://alt-web.com/
http://twitter.com/altweb -
GREAT cross browser javascript xml libriary
Hello !
This cross browser javascript xml libriary, will make work with XML much easier.
I am working on client side javascript at my job, and had to handle some data in big xml files using advanced xpath and this is not problem when dealing with IE but when it comes to Firefox and Opera it become nightmare to finish this job.
Then I decided to write module in javascript that can handle xml query using xpath:
http://www.softxml.com/softxmllib/softxmllib.htm
It supports all known browsers on windows.
It's functions named same as Microsoft.XMLDOM
loadXML,load,selectNodes but supported by all browsers
If any one of you tired too writing javascript/xml for all browsers, then go and download this module!!!!
ThanksBut since the only way (or at least so I think) to pass a
javascript variable to CF is via a javascript
document.location.href redirect (and passing the variables via URL
variables), I have the javascript in the first page redirect and
send the variables to the coldfusion template that then digests the
xml and does a database insert.
You should just do a server-side redirect and avoid
Javascript altogether. As a rule of thumb, one should use
Javascript to manipulate data or presentation at the client end. -
Cross Browser/OS issue?
Hi there,
This website belongs to our school project and we are getting reports from the teacher assistance and the professor that the website is not funcationing properly. They are saying the menu on the bottom of the page is not showing so they cant navigate the site.
http://tvbw.businesscatalyst.com/
Can someone direct me on how we can solve this issue? I have done cross browser check and on some site it doesnt show while on other site they are showing the menu!
Thank you for your help in advanced.that fixed the issue...which is weird since i was getting response from freind with both mac or windows tell me different things...
-
Where can I find a cross-browser bookmarks synchronizer?
I'm currently using the Xmarks type of add-ons, but Xmarks is planning to shut down within 90 days, and no replacement seems to be available.
Although Internet Explorer 8 is my preferred browser, add-ons to eliminate duplicate bookmarks appear to be available only for Firefox.
Also, I can report newsgroups spam fast enough on Google Groups that their software often confuses me with a computer program; rotating among the four browsers I have installed seems to help with this.
I'd like to synchronize the bookmarks collection among all 4 browsers; the Xmarks series of add-ons currently does this with two of them, and tries but fails with a third one; not available for the fourth.Xmarks has now been acquired by LastPass. They're now planning to continue bookmarks synchronization (including cross-browser), but substitute the LastPass method of passwords synchronization for the Xmarks method.
-
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. -
Overcoming browser differences
Is there a general tutorial on how to overcome browser
differences?
Hi All,
Can anyone point me at a tutorial (or book) which
systematically deals
with techniques for coping with different browsers
interpreting the same
css and html code differently.
I find myself increasingly frustrated and helpless when
fixing something
for one browser (e.g. Mozilla, Seamonkey etc) and finding it
looks a
mess in IE, and when I fix it in IE, it does not work in
Mozilla etc.
Acute example, where I need help (but I do not want to keep
coming back):
www.brookfield-park-pri.lancs.sch.uk/shell/contents/prospectus/prospectus/prospectus.html
To see the current disgrace look at the above, then search
for
'Galileo'. Perfect fit in Seamonkey, a mess in IE.
In IE the absolute positioning is different from Seamonkey,
also
padding-top in the 'Mathematics' quote differs.
This was handled by an in-line style:
<div id="Mathematics" class="bright_area"
style="position:absolute;
width:300px; height:80px; padding: 0em 0em 2em 1.5em;
z-index:3;
left: 404px; top: 9608px;">
<p class="normal_red">Mathematics is the language
<br>
in which God wrote the universe</p>
<p class="normal_red">Galileo (1564 –
1642)</p>
</div>
The stylesheet is at the following address:
www.brookfield-park-pri.lancs.sch.uk/shell/stylesheets/brookfield.css
Thanks for your help.
AdrianHi Joe, thank you, that explanation was really useful and I
hope I have
properly implemented it.
I could not change the margins of class img_left because that
would have
affected lots of other images on the site, but I took care of
that with
an in-line style.
I did get rid of the divs with position absolute, and that
solved most
of the problems.
However, something remains.
Could please look again at:
www.brookfield-park-pri.lancs.sch.uk/shell/contents/prospectus/prospectus/prospectus.html
The stylesheet is at the following address:
www.brookfield-park-pri.lancs.sch.uk/shell/stylesheets/brookfield.css
FIND 'galileo'. The image of the two touching hands is
positioned OK in
Seamonkey (with margin: 13.5 em), but in IE it is a couple of
ems too
far to the right. Whatever I do, I cannot get it right in
both browsers.
If I reduce margin-left from 13.5 ems to 13.0 em, the image
in IE is
hardly affected, whereas in Seamonkey it moves too far to the
left.
Does this have something to do with browser interpretation?
If you go down to the next image (Science, Professor
Greenfield),
<p><div class="bright_area"
style="margin: -30px 0px 0px 220px;
width: 300px; height: 170px;
padding: 5px 0px 0px 15px; ">
I have the text in the grey area (div) more or less where I
want it in
Seamonkey, having given the div padding-top: 5px,
but in IE there is not enough padding on top of the text.
As I gradually move padding-top up from 5px to 8px, Seamonkey
responds,
but IE does not seem to respond at all.
What is the solution?
Thanks for your help.
Adrian
Joe Makowiec wrote:
> On 22 Sep 2007 in macromedia.dreamweaver, Adrian Stock
wrote:
>
>> Is there a general tutorial on how to overcome
browser differences?
>>
>> Hi All,
>>
>> Can anyone point me at a tutorial (or book) which
systematically
>> deals with techniques for coping with different
browsers
>> interpreting the same css and html code differently.
>>
>> I find myself increasingly frustrated and helpless
when fixing
>> something for one browser (e.g. Mozilla, Seamonkey
etc) and finding
>> it looks a mess in IE, and when I fix it in IE, it
does not work in
>> Mozilla etc.
>>
>> Acute example, where I need help (but I do not want
to keep coming
>> back):
>>
>>
www.brookfield-park-pri.lancs.sch.uk/shell/contents/prospectus/prospe
>> ctus/prospectus.html
>>
>> To see the current disgrace look at the above, then
search for
>> 'Galileo'. Perfect fit in Seamonkey, a mess in IE.
>>
>> In IE the absolute positioning is different from
Seamonkey, also
>> padding-top in the 'Mathematics' quote differs.
>
> Actually, try resizing the text in a Mozilla-based
browser (like
> Seamonkey) - it's broken there, too.
>
> The problem in this case isn't browser differences, it's
a fundamental
> misunderstanding of how web development works. You're
trying to
> position that information absolutely in the middle of a
whole bunch of
> relatively-positioned stuff. When the
relatively-positioned stuff
> moves, as it will due to changes in font size, the
absolutely
> positioned stuff stays put and winds up out of place.
(Different
> browsers have slightly different concepts of what font
size is, which
> is why you're seeing the difference between IE and
Moz-based browsers.
> I suspect that if you checked in Safari or Camino, you'd
have the
> same problem.)
>
> Try this and see if it doesn't suit your purpose better:
>
> <h2>Mathematics</h2>
> <div id="Michelangelo" style="width:550px;margin:0
auto;padding:10px;border:1px solid #333;background-color:#fff;">
<img
src="images_prospectus/galileo_01_justus_sustermans_sm_200x245.jpg"
alt="Galileo, painted by Justus Sustermans" width="200"
height="245" class="img_left">
> <div style="margin-left:250px;">
> <p class="normal_red">Mathematics is the language
<br>
> in which God wrote the universe</p>
> <p class="normal_red">Galileo (1564 –
1642)</p>
> <img
src="images_prospectus/michelangelo_creation_of_adam_01.jpg"
alt="Detail from 'The Creation of Adam'" width="150"
height="55">
> </div>
> <br style="clear:both;line-height:0;">
> </div>
>
> What you don't see in the code snippet is that I've also
changed the
> margins in the .img_left class to 0.
>
> The div's position is now relative (the default if you
don't specify),
> which means that it will always come after the
'Mathematics' headline
> in the flow of the document. It has a fixed width and
margins are set
> to 0 auto (top/bottom - left/right), which means that it
will center.
> The stuff which goes to the right of the picture has its
own div, with
> a left margin sufficient to clear the image. (Because
the image is
> floated, the margin has to be from the contining div,
not the image.)
> Finally, the last <br> tag clears the float, so
that the containing
> div goes all the way past the picture of Galileo.
> -
Cross Browser? Opinions please.
Say a developer develops a basic .html site that is viewable
cross-browser. Now, taking advantage of features available in one
browser, he or she develops content that uses those features.
Not wanting to negatively impact the experience of other
browser users, whose browser cannot use those features and indeed
causes problems in their browser, the developer codes the site to
detect the browser and not display the additional content to them.
So the browser users who can see the new content get it and
those with other browsers see only the original site. No harm, no
foul? Or is the definition of Cross-Browser that EVERYONE MUST see
the same content - develop for the lowest common denominator?
The reason I ask, is that I have heard people throw around
terms like "unprofessional" if someone develops for only one
browser. I was just wondering what the definition of Cross-Browser
is.norrisoft wrote:
> Say a developer develops a basic .html site that is
viewable cross-browser.
> Now, taking advantage of features available in one
browser, he or she develops
> content that uses those features.
>
> Not wanting to negatively impact the experience of other
browser users, whose
> browser cannot use those features and indeed causes
problems in their browser,
> the developer codes the site to detect the browser and
not display the
> additional content to them.
>
> So the browser users who can see the new content get it
and those with other
> browsers see only the original site. No harm, no foul?
Or is the definition
> of Cross-Browser that EVERYONE MUST see the same content
- develop for the
> lowest common denominator?
>
> The reason I ask, is that I have heard people throw
around terms like
> "unprofessional" if someone develops for only one
browser. I was just
> wondering what the definition of Cross-Browser is.
"unprofessional" might be too much of a word. Bottom line is
what is that your
client needs and agree too.
For years people were developing stuff that was only
supported in IE, no one *****
about it because it was kind of given, we all knew it simply
did not work anywhere else.
From basic css to dhtml and others...
If my clients does not mind that I develop with FireFox in
mind and not IE, why would
I care if someone call me unprofessional. I want my content
to work right to the client
liking.
I read some threads day or two days back, pretty similar
issue. Tho I could not agree
with some of the points but than again, if my client has a
say in it and he is ok, that
is fine with me. Lots if not all of my clients feel strongly
about IE and security problems.
These are normal mortals, not computer savvy people and they
hate the idea that
regular surfing get them pack up with spyware and all this
stuff, people who not suppose
to know about cleaners, protections and 20 other applications
required just to run browser safely.
Because of that, they strongly encourage support of FireFox
and content specifically built
for it.
I herd many of times, "don't worry about IE, we don't want it
anyway"...
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
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. -
What about cross browser compatibility?
HI
I was searching cross browser and platform compatibility
matrix.
Can any one give me info on this or point me a link?
Thank You,
Suketu Vyas
Rich Internet Application Architect
Macromedia Certified professional
http://www.suketuvyas.comHi Suketu,
We don't have a matrix like that yet.
We have been testing on the latest browsers on both
platforms. Obviously, we are shooting to support all major browsers
correctly. We will note browser specific issues that we and other
users find on the Spry wiki.
I note in my Web Photo Gallery article that Safari has a bug
where doesn't handle XML nodes named <image> correctly.
If you find any browser specific bugs, please let us know!
Thanks for your help,
Donald Booth
Adobe Spry Team
Maybe you are looking for
-
How to tell between SATA2 and SATA3 hard drives?
Hello all. Googled my little fingers off and couldn't find a clear answer to this ... How (the heck) do you find out if a hard drive is SATA3 or SATA2 and/or how do you find out if a hard driveis 6Gb/s or 3Gb/s? The situation: WIth the price coming d
-
How to move Acrobat 8 Pro to a new computer?
I bought a new computer and need to transfer Acrobat 8 Pro from the old to the new. Both use Windows 7 Ultimate. The old in 32 bits, the new in 64 bits. How can I do it? Thanks,
-
Function modules for Appraisals
hello Friends, Is there any function module to get the appraisal details of an Employee.Its very urgent. Thanks in advance, regards, Ashok.
-
Tax is added / not added to material cost , How ?
Dear All , As we know that cond " JVRN " is non deductible i.e company will not get any credit for this tax paid & in P.O the tax will be added to material cost , in the same way cond " JVRD " is a deductible i.e the comp wi
-
Access table using ABAP program in other database
Dear SAP Expert, We have requirement that related to SAP interface. Our SAP system run on Oracle database 11g (Unix). Illustration: SAP system = A non SAP system = B We need to access a table using ABAP program (from SAP system A) in other database (