Bug 172060

Summary: Web Automation: upstream safaridriver's JavaScript atom implementations
Product: WebKit Reporter: Blaze Burg <bburg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, cgarcia, inspector-bugzilla-changes, joepeck, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=174024
Bug Depends on:    
Bug Blocks: 166679    
Attachments:
Description Flags
Patch bburg: review+

Description Blaze Burg 2017-05-12 16:45:04 PDT
Carlos would like to use these and we have no reason to not put this into the tree. For safaridriver's purposes, I think we can load these from WebKit2's bundle resources at runtime.
Comment 1 Radar WebKit Bug Importer 2017-05-12 16:45:36 PDT
<rdar://problem/32168187>
Comment 2 Carlos Garcia Campos 2017-05-31 00:18:16 PDT
Ping :-)
Comment 3 Carlos Garcia Campos 2017-07-11 05:44:07 PDT
Created attachment 315098 [details]
Patch
Comment 4 Blaze Burg 2017-07-11 09:32:10 PDT
Comment on attachment 315098 [details]
Patch

r=me, but I have changed my mind about where these should go. It would be better to put these in Source/WebKit2/UIProcess/Automation/atoms/, so they can be bulk copied without having to specify each by name.
Comment 5 Joseph Pecoraro 2017-07-11 11:11:20 PDT
Comment on attachment 315098 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=315098&action=review

> Source/WebKit2/ChangeLog:16
> +        * UIProcess/Automation/ElementAttribute.js: Added.
> +        (lowercaseAttributeName.string_appeared_here.lowercaseAttributeName.string_appeared_here.switch):
> +        (tagName.string_appeared_here.lowercaseAttributeName.string_appeared_here):
> +        (catch):
> +        * UIProcess/Automation/ElementDisplayed.js: Added.
> +        (isShown.nodeIsElement):
> +        (isShown.parentElementForElement):
> +        (isShown.enclosingNodeOrSelfMatchingPredicate):

You can probably stop this to just the file names. I don't think the functions add value here.
Comment 6 Joseph Pecoraro 2017-07-11 11:32:14 PDT
> You can probably stop this...

I meant strip this =)
Comment 7 Carlos Garcia Campos 2017-07-12 03:56:33 PDT
Committed r219388: <http://trac.webkit.org/changeset/219388>