Содержание
- 2. Agenda Confidential
- 3. Зачем нужно изучать структуру web-страницы? Авто-тесты взаимодействуют с UI Самый распространённый UI – WEB What is
- 4. What is it for? Confidential Шаг автоматизированного теста: Найти элемент UI; Произвести действие с элементом.
- 5. The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with
- 6. HTML DOM Structure Confidential INVISIBLE VISIBLE DOCUMENT
- 7. HTML DOM: from View to Code Confidential id=pnlMain id=pnlHdr id=pnlLogin id=pnlFtr id=pnlSec id=pnlLghtVrs id=pnlAuth
- 8. HTML DOM: from Code to Model Confidential id=pnlMain id=pnlLogin class=mid id=pnlHdr class=header id=pnlFtr class=footer id=pnlSec id=pnlLghtVrs
- 9. By id, by tag, by names: document.getElementById("rdoPblc") - 14 document.getElementsByTagName("label")[0] - 15 document.getElementsByName("trusted")[1] - 16 To
- 10. XPath is used to navigate through elements and attributes in an XML document. HTML → DOM
- 11. HTML DOM: XPath syntax Confidential http://www.w3schools.com/xpath/xpath_syntax.asp
- 12. By tags & attributes: //input[@id='rdoPblc'] – 14 Find in array: //*[@name='trusted'][2] – 16 Combined conditions: //*[@name='trusted'
- 13. Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation semantics (the
- 14. HTML DOM: CSS Selectors syntax Confidential http://www.w3schools.com/cssref/css_selectors.asp
- 15. By tag: img – 9 By id: #pnlAuth – 25 By class: .btn – 30 By
- 16. Developer tools http://getfirebug.com/ Полезные инструменты Confidential
- 18. Скачать презентацию