-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
popup step not working for current version of Chrome --> 69 #275
Comments
UPDATE - in the interim if popup step is required, try opening up the new page by specifying its URL as part of the automation flow. Then interact with it normally without using popup step. Thanks @yangliu8912 for flagging this :) Not sure if it is related to some breaking changes in the latest Chrome release. There is now problem finding the element in the popup page. Tracing the tagui_chrome.log shows finding the target new page and attaching to it successfully. Debugging shows correct status attached, however element not found. tagui_chrome.log
Can't find documentation by Chrome on any breaking change - Can't see recent related issues reported yet on Puppeteer - No issues yet on this in another Chrome interface library - Copying @Aussiroth as he is taking over supporting TagUI. Testing a flow to visit the about page works, so issue is likely new Chrome behavior. Running in default PhantomJS mode works. No clues at the moment where to troubleshoot, because the logs shows expected behavior of attaching to the new popup page, however querying an element return value 0 for not found. |
Thank you Ken for your speedy response. |
Found, looks like change in behavior of Chrome DevTools Protocol Thus in tagui_header.js, the following verification condition will now fail - if (ws_json.result.sessionId.indexOf(found_targetid) > -1) It can be fixed by changing to following, but need more exhaustive checks - if (ws_json.result.sessionId !== '') In the meantime, you can go to the URL directly by specifying it instead of using the popup step. |
@yangliu8912 in the meantime you can edit tagui/src/tagui_header.js and replace the condition
Then share if there are any other issues that you face with the popup new window. In any case, an alternative is use default PhantomJS mode or specifying the URL to visit the page to interact with it. @Aussiroth for your review of the possible solution.. and your thoughts if it is ok, before you commit the change accordingly. (also commit with the new positive_test.signature, will have slight change) |
Thanks for the update Ken! |
Instead of checking for provided sessionID, now just looks for the sessionID returned by chrome See issue aisingapore#275 on TagUI.
Fix popup step for new Chrome v69 behaviour - aisingapore#275 (comment)
sample/9_misc is throwing error:
ERROR - cannot find file-about_tebel-LC2
The text was updated successfully, but these errors were encountered: