Skip to main content

Posts

Showing posts from 2015

Selenium 1 or Selenium Remote Control or Selenium RC- Selenium RC mechanism to executes Scripts

Selenium 1 or Selenium Remote Control or Selenium RC - Selenium RC mechanism to executes Scripts Selenium RC is a popular UI automation library, allowing developers and testers to automate their interactions with a Web Application Under Test (WAUT) by providing them with the necessary libraries, supported in multiple languages, to program. In terms of design, Selenium RC chose to use generic JavaScript named Selenium Core to drive the WAUT on a browser. However, the decision of using generic JavaScript that can drive the WAUT on any browser should comply with a security policy named Same-Origin Policy. Every available browser in the market imposes this policy on the websites that are loaded on it. To know about this policy, we should take a closer look at how a browser executes JavaScript loaded from a website. For every website that is loaded on it, the browser creates a separate sandbox for the website's JavaScript, which restricts the JavaScript to be executed only on it&#

VB Script Samples

'#################################################### '#################################################### '1    Print Hello World Print "Hello World" '#################################################### '#################################################### '2    Find whether given number is a odd number Dim oNumber oNumber=4 If oNumber mod 2 <>0 Then     Print "The Number "& oNumber &" is an Odd Number" else     Print "The Number "& oNumber &" is not an Odd Number" End If '#################################################### '#################################################### '3    Print odd numbers between given range of numbers Dim RangeStart Dim RangeEnd Dim iCounter RangeStart=10 RangeEnd=20 For iCounter=RangeStart to RangeEnd     If iCounter mod 2 <>0 Then         Print  oNumber     End If Next '#################################################### '#####

Frequently Used Selenium Commands

The following commands are available to create scripts which can be run by our service. These are mainly Selenium commands but also include some custom commands for our service. The commands have either 0, 1 or 2 arguments, as indicated in the table. Name Description Arg1 Arg2 Open Open a URL. url – the URL to open; may be relative or absolute Assert Title Check the title of a web page. the title to check Click and Wait Click on a link and wait for the page to load locator – an element locator Click Click on a link in the page. locator – an element locator Type Type content into a entry box on the web page. locator – an element locator value – the value to type Wait Wait for a number of seconds time – time to wait in seconds Capture S