May 14, 2013

Temporarily disable flash player in web browsers



It can be useful for web developers to temporarily disable flash to test how a page will look if a viewer has chosen to disable this type of content.

Also, as many websites insist on prompting the user to install flash to view their content it is sometimes preferable to simply disable (rather than uninstall) flash if it is not required.

In Internet Explorer 7 and above:

Run Internet Explorer
Go to Tools » Manage Add-ons
Select the Flash add-on (Shockwave Flash Object) and click Disable
Note: If Flash is not available from the list, first select All add-ons from the show dropdown menu.
Close the dialog box
Hit F5 (refresh)
Note: IE may require a restart.
In Internet Explorer 6:

Run Internet Explorer
Go to Tools » Manage Add-ons...
Select the Flash add-on (Shockwave Flash Object) and click Disable
Note: If Flash is not available from the list, first select Add-ons that have been used by Internet Explorer from the show dropdown menu.
Close the dialog box
Hit F5 (refresh)
Note: IE may require a restart.
In Firefox:

Firefox does not seem to have a simple method of disabling flash content without the use of extensions (third-party software):

Adblock Plus is a useful plug-in for blocking ads and banners and is good way to block unwanted content in Firefox.
Flashblock is a plug-in that is more appropriate to blocking flash content and when installed will replace it with a button that can be clicked to view the content.
Unfortunately, both of these solutions block the entire content from the page rather than just disabling the .swf file and allowing any additional html content contained within the object (which is what a viewer would be able to see if flash was not installed).

In Opera:

Run Opera
Press F12
Uncheck Enable plug-ins
Close the dialog box
Hit F5 (refresh)
Note: As well as disabling all flash content, this will also disable any other third-party software that is being used on the page.
In Safari:

Run Safari
Go to Preferences » Security
Uncheck Enable plug-ins
Close the dialog box
Hit F5 (refresh)
Note: As well as disabling all flash content, this will also disable any other third-party software that is being used on the page.

Source:  http://www.forwestmedia.com/resources/how-to-guides/temporarily-disable-flash-player/

Reason for Copy and pasting the same content>

I feel like the above contents are very useful for me as well as for other. Hence I posted the similar page to all


Addons for testing Web page performance as well as try this


Page Speed, an open source Firefox/Firebug add-on that evaluates the performance of web pages and gives suggestions for improvement.

YSlow, a free tool from Yahoo! that suggests ways to improve website speed.

WebPagetest shows a waterfall view of your pages’ load performance plus an optimization checklist.

In Webmaster Tools, Labs > Site Performance shows the speed of your website as experienced by users around the world as in the chart below. 

Still the above mentioned items are in progress....



Chrome
Awesome Screenshot: Capture & Annotate
Edit This Cookie 0.31
Eye Dropper 0.2.6
Firebug Lite for Google Chrome™ 1.
Frame two pages 1.6.1
Google Dictionary (by Google) 3.0.15
IP Address and Domain Information 3.11
MeasureIt 0.4.9
Page Ruler 0.1.4
PerfectPixel by WellDoneCode 1.14
Speed Dial 2.1
Speed Tracer (by Google) 0.26
Web Developer 0.4.1
Websecurify 1.1.3

Firefox
DownThemAll
Extended Status bar
Selenium IDE
Firebug
Firefinder
Firepicker
Firerainbow
Flashfirebug
Groundspeed
HttpFox
Httprequester
Measure IT
Marklogic console for firebug
Page hacker
Pixel perfect
Regular Expression tester
Rest Client
Spell Checker
SQl Inject me
Xss Me
Auto pager
controlopacity
GreaseMonkey
Hackbar
PDF download
REload Every
Save as PDF
screengrab
Seo Quake
ShowLocation
ShowIP
Web2PDF converter
Download helper



Queries inside you before start anything - Ask about it

Whenever we start to test the application include your question to overcome many issues. These are the question are rolled out inside my mind....

What is my domain?
Which domain u r going to work?
What is the limits and credits?
Is there anything available already?
In which language my app is going to run?
What are the advantages & disadvantages of language?
What is the requirement of app?
How my app got designed?
What is the customers need?
What to test?
Why to test?
How to Test?
When to start test?
When to finish test?
Which place to test?
What is the major functionality to test?
What's your methodology?
What’s the server name?

Is this true? Do you  really think it is true?
Is this something good about that "third" person?
Is this something that is useful in someway to me?
What if that person about whom we are talking is present right here and listening to you - will you still talk the same way?

January 24, 2013

Selenium Web driver Basic cheat sheet for identifying element

I feel like below post will be useful for the people using selenium....

I Want to share the same with alllllll. I too looked for the same cheat sheet


Source: > https://gist.github.com/3284966

Thanks to huangzhichong selenium-webdriver-cheatsheet.md


API workthough

  1. Open a browser
    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
    driver.get 'http://google.com'
    driver.navigate.to 'http://google.com'
    
    NOTE -- the WebDriver may not wait for the page to load, you'd better using explicit and implicit waits.
  • Locating Elements
    • find_element -- Find the first element matching the given arguments.
    • find_elements -- Find all elements matching the given arguments
    • By ID
      # example html
      # <input id="q">...</input>
      
      element = driver.find_element(:id, "q")
      
    • By Class Name
      # example html
      # <div class="highlight-java" style="display: none; ">...</div>
      
      element = driver.find_element(:class, 'highlight-java')
      # or
      element = driver.find_element(:class_name, 'highlight-java')
      
    • By Tag Name
      # example html
      # <div class="highlight-java" style="display: none; ">...</div>
      
      element = driver.find_element(:tag_name, 'div')
      
    • By Name
      # example html
      # <input id="q" name='search' type='text'>…</input>
      
      element = driver.find_element(:name, 'search')
      
    • By Link Text
      # example html
      # <a href="http://www.google.com/search?q=cheese">cheese</a>
      
      element = driver.find_element(:link, 'cheese')
      # or            
      element = driver.find_element(:link_text, 'cheese')
      
    • By Partial Link Text
      # example html
      # <a href="http://www.google.com/search?q=cheese">search for cheese</a>         
      element = driver.find_element(:partial_link_text, 'cheese') 
      
    • By XPath
      # example html
      # <ul class="dropdown-menu">
      #   <li><a href="/login/form">Login</a></li>
      #   <li><a href="/logout">Logout</a></li>
      # </ul>
      
      element = driver.find_element(:xpath, '//a[@href='/logout']')
      
      • NOTE -- When using Element#find_element with :xpath, be aware that,
        • webdriver follows standard conventions: a search prefixed with "//" will search the entire document, not just the children of this current node.
        • Use ".//" to limit your search to the children of the receiving Element.
    • By CSS Selector
      # example html
      # <div id="food">
      #   <span class="dairy">milk</span>
      #   <span class="dairy aged">cheese</span>
      # </div>
      
      element = driver.find_element(:css, #food span.dairy)
      
  • Element's operation
    • Button/Link/Image
      driver.find_element(:id, 'BUTTON_ID).click
      
    • Text Filed
      # input some text
      driver.find_element(:id, 'TextArea').send_keys 'InputText'
      # send keyboard actions, press `ctral+a` & `backspace`
      driver.find_element(:id, 'TextArea').send_keys [:contol, 'a'], :backspace
      
    • Checkbox/Radio
      # check if it is selected
      driver.find_element(:id, 'CheckBox').selected?
      # select the element
      driver.find_element(:id, 'CheckBox').click
      # deselect the element
      driver.find_element(:id, 'CheckBox').clear
      
    • Select
      # get the select element    
      select = driver.find_element(:tag_name, "select")
      # get all the options for this element
      all_options = select.find_elements(:tag_name, "option")
      # select the options
      all_options.each do |option|
       puts "Value is: " + option.attribute("value")
       option.click
      end
      
      # anthoer way is using the Select class after seleniun-webdriver 2.14       
      element= driver.find_element(:tag_name,"select")
      select=Selenium::WebDriver::Support::Select.new(element)
      select.deselect_all()
      select.select_by(:text, "Edam")
      
    • visibility
      driver.find_element(:id,'Element').displayed?
      
    • get text
      driver.find_element(:id,'Element').text
      
    • get attribue
      driver.find_element(:id, 'Element').attribute('class')
      
  • Driver's operation
    • execute javascript
      driver.execute_script("return window.location.pathname")
      
    • wait for a specific element to show up
      # set the timeout to 10 seconds
      wait = Selenium::WebDriver::Wait.new(:timeout => 10)
      # wait 10 seconds until the element appear
      wait.until { driver.find_element(:id => "foo") }
      
    • implicit waits
    An implicit wait is to tell WebDriver to poll the DOM for a certain amount of time when trying to find an element or elements if they are not immediately available
        driver = Selenium::WebDriver.for :firefox
        # set the timeout for implicit waits as 10 seconds
        driver.manage.timeouts.implicit_wait = 10
    
        driver.get "http://somedomain/url_that_delays_loading"
        element = driver.find_element(:id => "some-dynamic-element")
    
    • switch between frames
      # switch to a frame
      driver.switch_to.frame "some-frame" # name or id
      driver.switch_to.frame driver.find_element(:id, 'some-frame') # frame element
      
      # switch back to the main document
      driver.switch_to.default_content
      
    • swich between windows
      driver.window_handles.each do |handle|
        driver.switch_to.window handle
      end
      
    • handle javascript dialog
      # get the alert
      a = driver.switch_to.alert
      # operation on the alert
      if a.text == 'A value you are looking for'
        a.dismiss
      else
        a.accept
      end
      
  • Cookies
    • Delete cookies
      # You can delete cookies in 2 ways
      # By name
      driver.manage.delete_cookie("CookieName")
      # Or all of them
      driver.manage.delete_all_cookies

December 26, 2012

Waiting for 2013

Waiting for the year 2013..... Still counting my days...... For all the fellow testers I planned to change my way of posting the blogs..... Soon I have planned to post my blog as a useful one and will share day to day activities in my team for learning.

Reason for the Above image..... As tester We need to identify what is behind the image... Guess yourself and  add your comments below...............