Google+

WebDriver

Selenium WebDriver is one of the 4 components of Selenium. Selenium WebDriver is the powerful and popular component of Selenium in the current market.



The below are the four different components in Selenium:
  • Selenium IDE
  • Selenium RC
  • Selenium WebDriver
  • Selenium Grid

Selenium RC used to the popular and most used Selenium component in the market. But the drawback of Selenium RC is to use Proxy server as mediator for communicating the Selenium commands to the browser. Hence in Selenium RC, we need to launch the Server for Server for executing the automation scripts.

Selenium WebDriver has come-up with the Native Drivers concept which has removed the need for launching the Proxy server for executing the automation scripts. Hence in Selenium WebDriver, direct communication between the Selenium Command and Browser got established. Once the Selenium WebDriver got introduced into the market, it became popular day by day and is the major component of Selenium in the current market.

Since Selenium WebDriver is the most used, popular and powerful component of Selenium, lets learn it in detailed from the below posts:

275. Introduction to Selenium WebDriver
276. Downloading the Selenium WebDriver
277. Configuring Projects in Eclipse IDE to work with Selenium WebDriver
278. Is Selenium Server required by Selenium WebDriver ?
279. Selenium RC versus Selenium Web Driver
280. Create a JUnit Selenium WebDriver Test using Selenium IDE
281. Ensure compatible Firefox Browser is installed
282. Run the Created Selenium WebDriver Test
283. Introduction to JUnit
284. Using JUnit annotation in our Selenium WebDriver Tests
285. Eclipse Automatically adds the Package Name into the newly created Java Class
286. Writing Selenium WebDriver Test on our own
287. Implementing JUnit Annotations
288. WebDriver Class and its Predefined Methods
289. 'get( )' - Selenium WebDriver method to open the specified URL page
290. manage( ).window( ).maximize( ) - to maximize the Browser window
291. manage( ).window( ).setSize( ) - to resize the Browser window
292. Using Thread.sleep(Millie Seconds) to pause the execution
293. quit( ) - Selenium WebDriver method for closing the Test Browser window
294. What are Locators ?
295. Different Types of Locators to identify UI elements
296. Tools in Selenium to find out the locators
297. Locate UI elements by ID
298. Locate UI elements by Name
299. Locate UI elements by Link
300. Locate UI elements by XPath
301. Locate UI elements by CSS
302. Finding locators for UI elements using the Selenium IDEs recording feature
303. click( ) - predefined method for clicking a Link
304. click( ) - predefined method for clicking a Button
305. Using sendKeys( ) predefined method for entering text
306. Using click( ) - predefined method to select a radio button
307. Using click( ) predefined method for selecting a check box option
308. Using sendKeys( ) predefined method to select a list item from the drop down list
309. Using getText( ) to retrieve any elements Text
310. Using getPageSource( ) method
311. Using getTitle( ) method for retrieving the Title of the page
312. Using getAttribute("value") method for retrieving text from the text fields
313. Using isDisplayed( ) to verify whether an element is available
314. Using FirefoxDriver for running Selenium WebDriver Automation Tests on Firefox Browser
315. Using ChromeDriver for Running our Tests on Chrome Browser
316. Using InternetExplorerDriver for Running our Tests on Internet Explorer Browser
317. View the source code generated by Selenium IDE in Selenium WebDriver format
318. Renaming the Projects and its items using Eclipse IDE 'Refactor' option
319. Refactoring the Selenium Automation Code
320. Identifying few sample real time tests for implementing the Refactoring concept
321. Non-Refactored Selenium Automation code for the tests identified in previous post
322. Only one test should be written inside a single test method
323. Using @BeforeClass and @AfterClass JUnit Annotations
324. Refactoring the Selenium Automation code to make it readable
325. Upgrading Selenium WebDriver
326. HTML BASICS
327. Introduction to XPath
328. Understanding the hierarchy of HTML Source
329. Parse the HTML Source using its hierarchy and find XPath path
330. Different types of Nodes in HTML
331. Locate the Element Nodes using Relative XPath
332. XPath Functions
333. last( ) - XPath Function
334. position( ) - XPath function
335. contains( ) - XPath function
336. starts-with( ) XPath Function
337. Other XPath Functions
338. XPath Operators
339. Wild Cards usage in XPath
340. Using node( ) wild card in XPath Statements
341. Using * wild card in XPath Statements
342. Using | to combine XPath Statements
343. XPath Optimization
344. XPath Optimization Strategy One - Use the id attribute if available for the element but not used in XPath Statement
345. XPath Optimization Strategy Two - Use the combination of attributes to make the XPath more specific
346. XPath Optimization Strategy Three - If there is really nothing to distinguish find the first unique element from its siblings and add the index value to it
347. XPath Optimization Strategy Four - Use Relative XPath Statements instead of Absolute XPath Statements
348. Practice XPath
349. Easy and Regular way of finding XPath Statements for Elements
350. Typing the Text into Text box by Locating the Text Box field with XPath Statement
351. Using isSelected( ) predefined method to get the status of the radio buttons and check box options
352. Selecting values from the Drop down list by locating the Drop down field using XPath Statement
353. Clicking the Link by locating it using XPath Statement
354. Clicking the Button by locating it using XPath statement
355. Introduction to CSS selectors
356. html CSS Selector for locating the whole web page
357. body CSS Selector for locating the body of the web page
358. Absolute CSS Selector path
359. Relative CSS Selector path
360. Using # to select an element with a specified id
361. Using [attribute='value'] to select an element containing the specified attribute
362. Using dot in CSS path to select an element with a specified class
363. Using [attribute] to select all the element containing the specified attribute
364. Locating first child, last child and nth child with CSS path
365. Locating different elements using a single CSS path
366. Using * wild card in CSS selector
367. Using ^= , $= and *= in CSS selector
368. Using Boolean Operators in CSS selector
369. CSS selector Optimization
370. CSS selector Optimization Strategy One - Use the id attribute if available for the element but not used
371. CSS selector Optimization Strategy Two - Use the combination of attributes to make the CSS selector statement more specific
372. CSS selector Optimization Strategy Three - Use Relative CSS Statements instead of Absolute CSS Statements
373. Practice CSS Path
374. Easy and Regular way of finding CSS Path for Elements
375. Typing the Text into Text box by Locating the Text Box field using CSS Path Statement
376. Using isSelected( ) predefined method to get the status of the radio buttons and check box options
377. Selecting values from the Drop down list by locating the Drop down field using CSS Path Statement
378. Clicking a link by locating it using CSS Path statement
379. Clicking the Button by locating it using CSS Path statement
380. Using sendKeys( ) command for entering text into a text box field
381. Using sendKeys( ) command for entering text into a Password field
382. Using sendKeys( ) command for entering single line text into a Text Area field
383. Using sendKeys( ) command for entering multiple lines of text into a Text Area field
384. Using clear( ) command to clear a text box field
385. Using clear( ) command to clear a Text Area field
386. Difference between close( ) and quit( ) Selenium WebDriver commands
387. Launching more than one Browser windows
388. Understanding how close( ) and quit( ) commands work when more than one window is opened
389. Understanding how close( ) and quit( ) commands work when only one window is opened
390. Try this if close( ) WebDriver command is not closing the Browser window
391. Using click( ) WebDriver command for selecting a check box option
392. Using click( ) command for deselecting a check box option
393. Using isSelected( ) method to get the status of the check box option
394. Using click( ) command to select a radio button
395. Using isSelected( ) method to get the status of the radio button
396. Using isEnabled( ) to find out whether the button is enabled
397. Using isEnabled( ) to find out whether the text box field is in enabled state or disabled state
398. Using sendKeys( ) command to select a list item from the drop down field
399. Using deselectAll( ) command to deselect any already selected list options in the multiple-selection Box
400. Using selectByVisibleText( ) command to select more than one list options from the Multi Select Box field
401. Using deselectByVisibleText( ) command to deselect any list option from the Multi Select Box field
402. Using selectByIndex( ) command to select any list option using its Index value from the Multi Select Box field
403. Using deselectByIndex( ) command to deselect any list option using its Index value from the Multi Select Box field
404. Using selectByValue( ) command to select the list option from the Multi Select Box field using the specified value
405. Using deselectByValue( ) command to deselect the list option from the Multi Select Box field using its value
406. Using selectByVisibleText( ) command with Drop Down Field
407. Using selectByIndex( ) command with Drop Down field
408. Using selectByValue( ) command with Drop Down field
409. Using navigate( ).to( ) command to open the specified URL
410. Using navigate( ).back( ) command to move backward in our browser
411. Using navigate( ).forward( ) command to move forward in our browser
412. Using sendKeys( ) command to browser a file
413. Using click( ) for clicking a button
414. Using click( ) for clicking a link
415. Using getAttribute("value") with a text box field
416. Using getAttribute("value") method with Password field
417. Using getAttribute("value") method with Text Area field
418. Using getAttribute("value") method with drop down field
419. Using getFirstSelectedOption( ) with drop down field to retrieve the label text of the list option that is currently selected
420. Using getFirstSelectedOption( ) with Multi-Selection Box field to retrieve the label text of the option that is selected first in the field
421. Using isMultiple( ) with a drop down fiel
422. Using isMultiple( ) with Multi-Selection Box field
423. Using getAllSelectedOptions( ) to get all the selected options in Multi-Selection Box field
424. Using getOptions( ) to get all the options available in Drop Down field
425. Using getOptions( ) to get all the options available in Multi-Selection Box field
426. Entering an integer variables value into a text box field using sendKeys( ) command
427. Using size( ) to retrieve the count of list options available in the drop down field
428. Using size( ) to retrieve the count of list options available in the Multi-Selection Box field
429. Locating elements using By.tagName( )
430. Using findElements( )
431. Using getTitle( ) to retrieve the title of the page
432. Using getText( ) to retrieve the elements text
433. Get XPath Count in Selenium WebDriver

No comments: