Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1109/ASE.2015.110acmconferencesArticle/Chapter ViewAbstractPublication PagesaseConference Proceedingsconference-collections
research-article

LED: tool for synthesizing web element locators

Published: 09 November 2015 Publication History

Abstract

Web applications are growing fast in popularity and complexity. One of the major problems faced by web developers is writing JavaScript code that can retrieve Document Object Model (DOM) tree elements, and is consistent among multiple DOM states. We attempt to solve this problem by automatically synthesizing JavaScript code that interacts with the DOM. We present an automated tool called LED, to analyze the DOM elements, and synthesize code to select the DOM elements based on the DOM hierarchy as well as the nature of task that the user wants to perform. LED provides an interactive drag and drop support inside the browser for selecting positive and negative examples of DOM elements. We find that LED supports at least 86% of the locators used in the JavaScript code of deployed web applications, and that the locators synthesized by LED have a recall of 98% and a precision of 63%. LED is fast, taking only 0.23 seconds on average to synthesize a locator.

References

[1]
K. Bajaj, K. Pattabiraman, and A. Mesbah. Dompletion: Dom-aware javascript code completion. In Proceedings of the IEEE/ACM International Conference on Automated Software Engineering (ASE), page 43--54. ACM, 2014.
[2]
K. Bajaj, K. Pattabiraman, and A. Mesbah. Synthesizing web element locators. In Proceedings of the IEEE/ACM International Conference on Automated Software Engineering (ASE). ACM, 2015.
[3]
Firebug. http://getfirebug.com/. Accessed: 2015-07-21.
[4]
Firepath. https://code.google.com/p/firepath. Accessed: 2015-07-21.
[5]
Getting started | less.js. http://lesscss.org/. Accessed: 2015-07-21.
[6]
J. Huggins, P. Hammant, et al. Selenium, browser automation framework. URl: http://code.google.com/p/selenium, 2014.
[7]
A. Mesbah, A. van Deursen, and S. Lenselink. Crawling Ajax-based web applications through dynamic analysis of user interface state changes. ACM Transactions on the Web (TWEB), 6(1):3:1--3:30, 2012.
[8]
F. Ocariza, K. Bajaj, K. Pattabiraman, and A. Mesbah. An empirical study of client-side JavaScript bugs. In Proceedings of the ACM / IEEE International Symposium on Empirical Software Engineering and Measurement, pages 55--64. IEEE Computer Society, 2013.
[9]
Overview - google chrome. https://developer.chrome.com/devtools. Accessed: 2015-07-21.
[10]
Phantomjs | phantomjs. http://phantomjs.org/. Accessed: 2014-08-15.
[11]
saltlab/dompletion. https://github.com/saltlab/dompletion. Accessed: 2014-08-15.
[12]
Sass: Syntactically awesome style sheets. http://sass-lang.com/. Accessed: 2015-07-21.
[13]
Xpath checker. https://code.google.com/p/xpathchecker/. Accessed: 2015-07-21.
[14]
Xpath helper. https://github.com/google/xpaf. Accessed: 2015-07-21.

Cited By

View all
  • (2024)Investigating the robustness of locators in template-based Web application testing using a GUI change classification modelJournal of Systems and Software10.1016/j.jss.2023.111932210:COnline publication date: 1-Apr-2024
  • (2016)WATERFALL: an incremental approach for repairing record-replay tests of web applicationsProceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering10.1145/2950290.2950294(751-762)Online publication date: 1-Nov-2016

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Conferences
ASE '15: Proceedings of the 30th IEEE/ACM International Conference on Automated Software Engineering
November 2015
935 pages
ISBN:9781509000241

Sponsors

In-Cooperation

  • IEEE CS

Publisher

IEEE Press

Publication History

Published: 09 November 2015

Check for updates

Author Tags

  1. CSS selectors
  2. element locators
  3. program synthesis
  4. programming by example
  5. web applications

Qualifiers

  • Research-article

Conference

ASE '15
Sponsor:

Acceptance Rates

Overall Acceptance Rate 82 of 337 submissions, 24%

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)2
  • Downloads (Last 6 weeks)1
Reflects downloads up to 08 Feb 2025

Other Metrics

Citations

Cited By

View all
  • (2024)Investigating the robustness of locators in template-based Web application testing using a GUI change classification modelJournal of Systems and Software10.1016/j.jss.2023.111932210:COnline publication date: 1-Apr-2024
  • (2016)WATERFALL: an incremental approach for repairing record-replay tests of web applicationsProceedings of the 2016 24th ACM SIGSOFT International Symposium on Foundations of Software Engineering10.1145/2950290.2950294(751-762)Online publication date: 1-Nov-2016

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media