iframe cross domain issue
|
08-26-2014, 11:19 PM
(This post was last modified: 08-27-2014 12:09 AM by nccgroup_avi.)
Post: #1
|
|||
|
|||
iframe cross domain issue
Hello everyone,
I was trying to build the following journey using WPT script and I am unable to fill in the search criteria on step=2. I reckon, this is because the DOM elements belong to a different iframe. 1. Visit http://www.thomascook.com/holidays/city-breaks/ 2. Select origin (eg. London) 3. Fill in destination (eg. JFK) 4. Click Search Any suggestions on how I can set/select values on iFrames in WPT? Thanks, Avi |
|||
08-30-2014, 01:26 AM
Post: #2
|
|||
|
|||
RE: iframe cross domain issue
Can you use the contentWindow member of the iFrame and interact with it? Basically, get it working with script in Chrome's F12-dev tools console and then it should work as an exec command.
|
|||
09-02-2014, 01:38 AM
Post: #3
|
|||
|
|||
RE: iframe cross domain issue
Thanks Pat, following code works:
Code: combineSteps |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)