Skip to main content

Posts

Showing posts from April, 2015

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...