GithubHelp home page GithubHelp logo

Comments (27)

corevo avatar corevo commented on May 20, 2024 1

If you could upload the test cases where you use these commands that would be great.

In any case, the IDE waits for elements to appear as is, it waits for the page to finish loading, and finish any active network requests,
if you specifically enter a delay so that an element would appear, then try removing it, and see if it works.

Other than that, what caused "Blocked a frame with origin "URL" from accessing a cross-origin frame."?
Can you send me the command?, are you trying to access an iframe inside the webpage with a different origin

<iframe src="https://example.com">
  <input id="under-test" />
</iframe>

For example trying to access under-test, within the origin https://example.com, when the current url is not https://example.com?

from selenium-ide.

corevo avatar corevo commented on May 20, 2024 1

Here is what I believe is the issue,
You are running the tests against a local version of the app, http://localhost/, while the iframes work on a test or production version, e.g. http://prod.app.com.
Since they are not from the same origin, new browser policies prevent you from accessing the contents of that iframe for obvious reasons.
Accessing the content is a serious security breach, for example, I could place a bank's iframe inside my website, access it, and have the credentials of other users to their bank.
Thus accessing iframes from different origins is strictly forbidden according to this policy

from selenium-ide.

corevo avatar corevo commented on May 20, 2024 1

You are correct, it also seems to be a problem originating from selenium, I'll add it to the diff.
It'll be included in the next release

from selenium-ide.

bryanl-csi avatar bryanl-csi commented on May 20, 2024 1

Also appears than an issue with the "open" command. I have tons of scripts and I don't use the base url at all. Instead, the first command I run is to open a website/url. Appears the released version of the new ide doesn't know what to do with that and gets an error. Unless I manually go to the url outside selenium, then run the script. Then it seems to open and run ok.

from selenium-ide.

tourdedave avatar tourdedave commented on May 20, 2024 1

@Nachikethan1 and @setiseta we have added some wait for commands back, which will be in the next release. See #157 for details.

from selenium-ide.

schunt1 avatar schunt1 commented on May 20, 2024

Eeek, that one in particular would be a problem for us; we use it all the time.

Simon

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

Another thing i noticed i used comments that is currently not supported.

For example trying to access under-test, within the origin https://example.com, when the current url is not https://example.com?

We have some iframes true the code like Hotjar yes! But why should this be a problem now and not without the old IDE.

Will try it soon without those iframes and see if that solves our problems. Thanks!

[Create] Open Targeting audience
open /audiences
waitForPageToLoad
waitForElementPresent css=button:contains("Create new audience")
click css=button:contains("Create new audience")
waitForElementPresent css=.btn-group.open > ul.dropdown-menu
click css=a:contains("Open targeting"):nth(1)
waitForElementPresent link=General
type name=name Open Targeting audience ${timeStampEU}
waitForElementPresent css=input[type="search"]
sendKeys css=input[type="search"] Dutch
waitForElementPresent css=li:contains("Dutch")
clickAt css=li:contains("Dutch (Belgium)")
verifyElementPresent css=li:contains("Dutch (Belgium)")
sendKeys css=input[type="search"] German
waitForElementPresent css=li:contains("German")
clickAt css=li:contains("German")
verifyElementPresent css=li:contains("German")
type name=min-age 18
type name=max-age 45
select name=genders label=Male
verifySelectedValue name=genders 1
click link=Locations
waitForElementPresent name=location-types
click name=location-types value=recent recent
verifyChecked name=location-types value=recent
click name=location-types value=home home
verifyChecked name=location-types value=home
waitForElementPresent css=.select2-selection:contains("Add a country, state/province, city or ZIP")
clickAt css=.select2-selection:contains("Add a country, state/province, city or ZIP")
waitForElementPresent css=input[type="search"]
sendKeys css=input[type="search"] Netherlands
waitForElementPresent css=li:contains("Netherlands")
clickAt css=li:contains("Netherlands")
verifyElementPresent css=.selection:contains("Netherlands")
waitForElementPresent css=button:contains("Add location")
click css=button:contains("Add location")
waitForElementPresent css=.include:contains("Included"):nth(1)
click css=.include:contains("Included"):nth(1)
waitForElementPresent css=.select2-selection:contains("Add a country, state/province, city or ZIP")
clickAt css=.select2-selection:contains("Add a country, state/province, city or ZIP")
waitForElementPresent css=input[type="search"]
sendKeys css=input[type="search"] Amsterdam
waitForElementPresent css=li:contains("Amsterdam")
clickAt css=li:contains("Amsterdam, Montana, United States")
verifyElementPresent css=.selection:contains("Amsterdam, Montana, United States")
verifyElementPresent name=radius
select css=select[name="radius"]:nth(1) label=40 km
verifySelectedValue css=select[name="radius"]:nth(1) 40
waitForElementPresent css=button:contains("Add location")
click css=button:contains("Add location")
waitForElementPresent css=button[data-title='Choose custom location']:nth(2)
click css=button[data-title='Choose custom location']:nth(2)
setSpeed 250
waitForElementPresent css=button:contains("Use location")
click css=button:contains("Use location")
waitForElementPresent css=.location-selection:contains('latitude 52.370633')
verifyElementPresent css=.location-selection:contains('latitude 52.370633')
waitForElementPresent css=.location-selection:contains('longitude 4.928472499999998')
verifyElementPresent css=.location-selection:contains('longitude 4.928472499999998')
setSpeed 250
waitForElementPresent css=input[name='custom_radius']:nth(2)
type css=input[name='custom_radius']:nth(2) 37
fireEvent css=input[name='custom_radius']:nth(2) blur
verifyValue css=input[name='custom_radius']:nth(2) 37
waitForElementPresent css=button[data-title='Remove location']:nth(2)
click css=button[data-title='Remove location']:nth(2)
click link=Interests & behaviour
waitForElementPresent css=i.mdi.mdi-playlist-plus:nth(0)
click css=i.mdi.mdi-playlist-plus:nth(0)
waitForElementPresent css=span:contains("Advanced demographics")
click css=span:contains("Advanced demographics")
waitForElementPresent css=span:contains("Politics")
click css=span:contains("Politics")
waitForElementPresent css=span:contains("US politics (liberal)")
click css=span:contains("US politics (liberal)")
verifyElementPresent css=span.selection:contains("US politics (liberal)")
waitForElementPresent css=button:contains("Add targeting")
click css=button:contains("Add targeting")
waitForElementPresent css=i.mdi.mdi-playlist-plus:nth(1)
click css=i.mdi.mdi-playlist-plus:nth(1)
waitForElementPresent css=span:contains("Interests")
click css=span:contains("Interests")
waitForElementPresent css=span:contains("Entertainment")
click css=span:contains("Entertainment")
waitForElementPresent css=span:contains("Games")
click css=span:contains("Games")
waitForElementPresent css=span.path-item:contains("Entertainment")
click css=span.path-item:contains("Entertainment")
waitForElementPresent css=span:contains("Games")
click css=span:contains("Games")
waitForElementPresent css=span:contains("First-person shooter games")
click css=span:contains("First-person shooter games")
verifyElementPresent css=span.selection:contains("First-person shooter games")
waitForElementPresent css=button:contains("Add targeting")
click css=button:contains("Add targeting")
waitForElementPresent css=i.mdi.mdi-magnify:nth(3)
click css=i.mdi.mdi-magnify:nth(3)
sendKeys name=global_search playstation
waitForElementPresent css=li:contains("PlayStation 4")
click css=li:contains("PlayStation 4")
verifyElementPresent css=span.selection:contains("PlayStation 4")
waitForElementPresent css=button[data-action='remove-or-field']:nth(2)
click css=button[data-action='remove-or-field']:nth(2)
waitForElementPresent css=button:contains("Narrow audience")
click css=button:contains("Narrow audience")
waitForElementPresent css=button:contains("Narrow audience")
click css=button:contains("Narrow audience")
waitForElementPresent css=button:contains("Add targeting"):nth(2)
click css=button:contains("Add targeting"):nth(2)
waitForElementPresent css=i.mdi.mdi-playlist-plus:nth(2)
click css=i.mdi.mdi-playlist-plus:nth(2)
waitForElementPresent css=span:contains("Behaviors")
click css=span:contains("Behaviors")
waitForElementPresent css=span:contains("Travel")
click css=span:contains("Travel")
waitForElementPresent css=span:contains("Frequent Travelers")
click css=span:contains("Frequent Travelers")
verifyElementPresent css=span.selection:contains("Frequent Travelers")
waitForElementPresent css=button[data-action='remove-and-field']:nth(1)
click css=button[data-action='remove-and-field']:nth(1)
waitForElementPresent css=button:contains("Exclude people")
click css=button:contains("Exclude people")
waitForElementPresent css=i.mdi.mdi-playlist-plus:nth(3)
click css=i.mdi.mdi-playlist-plus:nth(3)
waitForElementPresent css=span:contains("Education and workplace")
click css=span:contains("Education and workplace")
waitForElementPresent css=span:contains("Education statuses")
click css=span:contains("Education statuses")
waitForElementPresent css=span:contains("Master degree")
click css=span:contains("Master degree")
verifyElementPresent css=span.selection:contains("Master degree")
click css=button[type="submit"]

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

I have added errors to let you guys know which waits can be removed.
The type and sendKeys are issues that originate from Selenium upstream (they appeared now because of different bundling technique that the IDE uses), and currently waiting for them to be merged.
And I still don't know how to replicate "Blocked a frame with origin "URL" from accessing a cross-origin frame.", it seems page specific, and I need the page source to investigate this further.

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

I didn't see you edited your comment,
The new IDE, uses the "context" of the browser, rather than running in a super user environment.
The old IDE on the other hand used a stronger context to run itself, which is why it can no longer work, as security measurements, certain things that the old IDE have done, may not be done anymore.
In case of iframes, you can read this, and inform your team about how to gain access from the outside into an iframe.
Basically the iframe and the page have to have the same origin.

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

What i did now is to try and understand why things are failing and i need propably need to learn or read something more about it!

Just simple thinking from my side:
When i use the new IDE(recorder) and try to partly mimic the old test case it simply works and records the ugly xpath just what the old IDE did and it runs successfully. 😄 with ugly i mean its hard to figure out were thing where going wrong and that was the main reason we changed it to css selectors to make it more readable and easy to find things for our selves. So for just a starter i just don't understand our web application is the issue here since recording and running that with the new IDE just works fine?

So my conclusion would be that those iframes can't be the cause of failure? Or at least that wouldn't be logic?

Not sure if this would be usefull to see the log from the failing test case:

Running '[Create] Open Targeting audience'
1.Trying to execute open on /audiences...
2.Trying to execute waitForPageToLoad on ...
3.Trying to execute waitForElementPresent on css=button:contains("Create new audience")...
Unknown command: waitForElementPresent
4.Trying to execute click on css=button:contains("Create new audience")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
5.Trying to execute waitForElementPresent on css=.btn-group.open > ul.dropdown-menu...
Unknown command: waitForElementPresent
6.Trying to execute click on css=a:contains("Open targeting"):nth(1)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
7.Trying to execute waitForElementPresent on link=General...
Unknown command: waitForElementPresent
8.Trying to execute type on name=name with value Open Targeting audience ${timeStampEU}...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
9.Trying to execute waitForElementPresent on css=input[type="search"]...
Unknown command: waitForElementPresent
10.Trying to execute sendKeys on css=input[type="search"] with value Dutch...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
11.Trying to execute waitForElementPresent on css=li:contains("Dutch")...
Unknown command: waitForElementPresent
12.Trying to execute clickAt on css=li:contains("Dutch (Belgium)")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
13.Trying to execute verifyElementPresent on css=li:contains("Dutch (Belgium)")...
Unknown command: verifyElementPresent
14.Trying to execute sendKeys on css=input[type="search"] with value German...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
15.Trying to execute waitForElementPresent on css=li:contains("German")...
Unknown command: waitForElementPresent
16.Trying to execute clickAt on css=li:contains("German")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
17.Trying to execute verifyElementPresent on css=li:contains("German")...
Unknown command: verifyElementPresent
18.Trying to execute type on name=min-age with value 18...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
19.Trying to execute type on name=max-age with value 45...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
20.Trying to execute select on name=genders with value label=Male...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
21.Trying to execute verifySelectedValue on name=genders with value 1...
Unknown command: verifySelectedValue
22.Trying to execute click on link=Locations...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
23.Trying to execute waitForElementPresent on name=location-types...
Unknown command: waitForElementPresent
24.Trying to execute click on name=location-types value=recent with value recent...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
25.Trying to execute verifyChecked on name=location-types value=recent...
Unknown command: verifyChecked
26.Trying to execute click on name=location-types value=home with value home...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
27.Trying to execute verifyChecked on name=location-types value=home...
Unknown command: verifyChecked
28.Trying to execute waitForElementPresent on css=.select2-selection:contains("Add a country, state/province, city or ZIP")...
Unknown command: waitForElementPresent
29.Trying to execute clickAt on css=.select2-selection:contains("Add a country, state/province, city or ZIP")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
30.Trying to execute waitForElementPresent on css=input[type="search"]...
Unknown command: waitForElementPresent
31.Trying to execute sendKeys on css=input[type="search"] with value Netherlands...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
32.Trying to execute waitForElementPresent on css=li:contains("Netherlands")...
Unknown command: waitForElementPresent
33.Trying to execute clickAt on css=li:contains("Netherlands")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
34.Trying to execute verifyElementPresent on css=.selection:contains("Netherlands")...
Unknown command: verifyElementPresent
35.Trying to execute waitForElementPresent on css=button:contains("Add location")...
Unknown command: waitForElementPresent
36.Trying to execute click on css=button:contains("Add location")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
37.Trying to execute waitForElementPresent on css=.include:contains("Included"):nth(1)...
Unknown command: waitForElementPresent
38.Trying to execute click on css=.include:contains("Included"):nth(1)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
39.Trying to execute waitForElementPresent on css=.select2-selection:contains("Add a country, state/province, city or ZIP")...
Unknown command: waitForElementPresent
40.Trying to execute clickAt on css=.select2-selection:contains("Add a country, state/province, city or ZIP")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
41.Trying to execute waitForElementPresent on css=input[type="search"]...
Unknown command: waitForElementPresent
42.Trying to execute sendKeys on css=input[type="search"] with value Amsterdam...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
43.Trying to execute waitForElementPresent on css=li:contains("Amsterdam")...
Unknown command: waitForElementPresent
44.Trying to execute clickAt on css=li:contains("Amsterdam, Montana, United States")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
45.Trying to execute verifyElementPresent on css=.selection:contains("Amsterdam, Montana, United States")...
Unknown command: verifyElementPresent
46.Trying to execute verifyElementPresent on name=radius...
Unknown command: verifyElementPresent
47.Trying to execute select on css=select[name="radius"]:nth(1) with value label=40 km...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
48.Trying to execute verifySelectedValue on css=select[name="radius"]:nth(1) with value 40...
Unknown command: verifySelectedValue
49.Trying to execute waitForElementPresent on css=button:contains("Add location")...
Unknown command: waitForElementPresent
50.Trying to execute click on css=button:contains("Add location")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
51.Trying to execute waitForElementPresent on css=button[data-title='Choose custom location']:nth(2)...
Unknown command: waitForElementPresent
52.Trying to execute click on css=button[data-title='Choose custom location']:nth(2)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
53.Trying to execute setSpeed on 250...
this operation is only implemented in selenium-rc, and should never result in a request making it across the wire
54.Trying to execute waitForElementPresent on css=button:contains("Use location")...
Unknown command: waitForElementPresent
55.Trying to execute click on css=button:contains("Use location")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
56.Trying to execute waitForElementPresent on css=.location-selection:contains('latitude 52.370633')...
Unknown command: waitForElementPresent
57.Trying to execute verifyElementPresent on css=.location-selection:contains('latitude 52.370633')...
Unknown command: verifyElementPresent
58.Trying to execute waitForElementPresent on css=.location-selection:contains('longitude 4.928472499999998')...
Unknown command: waitForElementPresent
59.Trying to execute verifyElementPresent on css=.location-selection:contains('longitude 4.928472499999998')...
Unknown command: verifyElementPresent
60.Trying to execute setSpeed on 250...
this operation is only implemented in selenium-rc, and should never result in a request making it across the wire
61.Trying to execute waitForElementPresent on css=input[name='custom_radius']:nth(2)...
Unknown command: waitForElementPresent
62.Trying to execute type on css=input[name='custom_radius']:nth(2) with value 37...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
63.Trying to execute fireEvent on css=input[name='custom_radius']:nth(2) with value blur...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
64.Trying to execute verifyValue on css=input[name='custom_radius']:nth(2) with value 37...
Unknown command: verifyValue
65.Trying to execute waitForElementPresent on css=button[data-title='Remove location']:nth(2)...
Unknown command: waitForElementPresent
66.Trying to execute click on css=button[data-title='Remove location']:nth(2)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
67.Trying to execute click on link=Interests & behaviour...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
68.Trying to execute waitForElementPresent on css=i.mdi.mdi-playlist-plus:nth(0)...
Unknown command: waitForElementPresent
69.Trying to execute click on css=i.mdi.mdi-playlist-plus:nth(0)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
70.Trying to execute waitForElementPresent on css=span:contains("Advanced demographics")...
Unknown command: waitForElementPresent
71.Trying to execute click on css=span:contains("Advanced demographics")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
72.Trying to execute waitForElementPresent on css=span:contains("Politics")...
Unknown command: waitForElementPresent
73.Trying to execute click on css=span:contains("Politics")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
74.Trying to execute waitForElementPresent on css=span:contains("US politics (liberal)")...
Unknown command: waitForElementPresent
75.Trying to execute click on css=span:contains("US politics (liberal)")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
76.Trying to execute verifyElementPresent on css=span.selection:contains("US politics (liberal)")...
Unknown command: verifyElementPresent
77.Trying to execute waitForElementPresent on css=button:contains("Add targeting")...
Unknown command: waitForElementPresent
78.Trying to execute click on css=button:contains("Add targeting")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
79.Trying to execute waitForElementPresent on css=i.mdi.mdi-playlist-plus:nth(1)...
Unknown command: waitForElementPresent
80.Trying to execute click on css=i.mdi.mdi-playlist-plus:nth(1)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
81.Trying to execute waitForElementPresent on css=span:contains("Interests")...
Unknown command: waitForElementPresent
82.Trying to execute click on css=span:contains("Interests")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
83.Trying to execute waitForElementPresent on css=span:contains("Entertainment")...
Unknown command: waitForElementPresent
84.Trying to execute click on css=span:contains("Entertainment")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
85.Trying to execute waitForElementPresent on css=span:contains("Games")...
Unknown command: waitForElementPresent
86.Trying to execute click on css=span:contains("Games")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
87.Trying to execute waitForElementPresent on css=span.path-item:contains("Entertainment")...
Unknown command: waitForElementPresent
88.Trying to execute click on css=span.path-item:contains("Entertainment")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
89.Trying to execute waitForElementPresent on css=span:contains("Games")...
Unknown command: waitForElementPresent
90.Trying to execute click on css=span:contains("Games")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
91.Trying to execute waitForElementPresent on css=span:contains("First-person shooter games")...
Unknown command: waitForElementPresent
92.Trying to execute click on css=span:contains("First-person shooter games")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
93.Trying to execute verifyElementPresent on css=span.selection:contains("First-person shooter games")...
Unknown command: verifyElementPresent
94.Trying to execute waitForElementPresent on css=button:contains("Add targeting")...
Unknown command: waitForElementPresent
95.Trying to execute click on css=button:contains("Add targeting")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
96.Trying to execute waitForElementPresent on css=i.mdi.mdi-magnify:nth(3)...
Unknown command: waitForElementPresent
97.Trying to execute click on css=i.mdi.mdi-magnify:nth(3)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
98.Trying to execute sendKeys on name=global_search with value playstation...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
99.Trying to execute waitForElementPresent on css=li:contains("PlayStation 4")...
Unknown command: waitForElementPresent
100.Trying to execute click on css=li:contains("PlayStation 4")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
101.Trying to execute verifyElementPresent on css=span.selection:contains("PlayStation 4")...
Unknown command: verifyElementPresent
102.Trying to execute waitForElementPresent on css=button[data-action='remove-or-field']:nth(2)...
Unknown command: waitForElementPresent
103.Trying to execute click on css=button[data-action='remove-or-field']:nth(2)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
104.Trying to execute waitForElementPresent on css=button:contains("Narrow audience")...
Unknown command: waitForElementPresent
105.Trying to execute click on css=button:contains("Narrow audience")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
106.Trying to execute waitForElementPresent on css=button:contains("Narrow audience")...
Unknown command: waitForElementPresent
107.Trying to execute click on css=button:contains("Narrow audience")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
108.Trying to execute waitForElementPresent on css=button:contains("Add targeting"):nth(2)...
Unknown command: waitForElementPresent
109.Trying to execute click on css=button:contains("Add targeting"):nth(2)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
110.Trying to execute waitForElementPresent on css=i.mdi.mdi-playlist-plus:nth(2)...
Unknown command: waitForElementPresent
111.Trying to execute click on css=i.mdi.mdi-playlist-plus:nth(2)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
112.Trying to execute waitForElementPresent on css=span:contains("Behaviors")...
Unknown command: waitForElementPresent
113.Trying to execute click on css=span:contains("Behaviors")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
114.Trying to execute waitForElementPresent on css=span:contains("Travel")...
Unknown command: waitForElementPresent
115.Trying to execute click on css=span:contains("Travel")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
116.Trying to execute waitForElementPresent on css=span:contains("Frequent Travelers")...
Unknown command: waitForElementPresent
117.Trying to execute click on css=span:contains("Frequent Travelers")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
118.Trying to execute verifyElementPresent on css=span.selection:contains("Frequent Travelers")...
Unknown command: verifyElementPresent
119.Trying to execute waitForElementPresent on css=button[data-action='remove-and-field']:nth(1)...
Unknown command: waitForElementPresent
120.Trying to execute click on css=button[data-action='remove-and-field']:nth(1)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
121.Trying to execute waitForElementPresent on css=button:contains("Exclude people")...
Unknown command: waitForElementPresent
122.Trying to execute click on css=button:contains("Exclude people")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
123.Trying to execute waitForElementPresent on css=i.mdi.mdi-playlist-plus:nth(3)...
Unknown command: waitForElementPresent
124.Trying to execute click on css=i.mdi.mdi-playlist-plus:nth(3)...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
125.Trying to execute waitForElementPresent on css=span:contains("Education and workplace")...
Unknown command: waitForElementPresent
126.Trying to execute click on css=span:contains("Education and workplace")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
127.Trying to execute waitForElementPresent on css=span:contains("Education statuses")...
Unknown command: waitForElementPresent
128.Trying to execute click on css=span:contains("Education statuses")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
129.Trying to execute waitForElementPresent on css=span:contains("Master degree")...
Unknown command: waitForElementPresent
130.Trying to execute click on css=span:contains("Master degree")...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
131.Trying to execute verifyElementPresent on css=span.selection:contains("Master degree")...
Unknown command: verifyElementPresent
132.Trying to execute click on css=button[type="submit"]...
Blocked a frame with origin "URL" from accessing a cross-origin frame.
'[Create] Open Targeting audience' completed with 1 error(s)

The 2 first lines succeed! The rest 130 lines fail!

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

New test case:
{ "id": "20c66ccd-9b9e-4d0f-94b9-090283c8b312", "name": "Untitled Project", "url": "URL", "tests": [{ "id": "c8d2d599-d044-4834-98db-040bfb9504d3", "name": "Untitled", "commands": [{ "id": "e16963c8-18c0-45df-a2ce-11bd87650c2d", "command": "open", "target": "/campaigns-overview", "value": "" }, { "id": "c70e7a13-801b-447b-82bb-35fa1ee2f251", "command": "clickAt", "target": "//nav[@id='sidenavbar']/ul/li[5]/a/i", "value": "-7,-4" }, { "id": "01a47797-668e-4262-ac9f-29de4489e411", "command": "clickAt", "target": "//nav[@id='sidenavbar']/ul/li[5]/div/ul/li[2]/a/div/p", "value": "6,20" }, { "id": "d1fd8fc5-bf90-4e45-87ee-d4074763fa98", "command": "clickAt", "target": "//section[@id='dashboard']/section/header/div/div[2]/button", "value": "129,8" }, { "id": "987b00c0-4f21-46b4-9d94-53a42e718099", "command": "clickAt", "target": "xpath=(//a[contains(text(),'Open targeting')])[2]", "value": "86,17" }, { "id": "32bcecb7-8c19-49d2-92d7-16bda4d3216a", "command": "mouseOver", "target": "xpath=(//a[contains(text(),'Open targeting')])[2]", "value": "" }, { "id": "d704e447-ff1a-4d1b-80d4-6fc6b84311ea", "command": "mouseOut", "target": "xpath=(//a[contains(text(),'Open targeting')])[2]", "value": "" }, { "id": "2d0790b0-f1c2-45f3-abc5-f4345ebeb8f3", "command": "clickAt", "target": "name=name", "value": "-299,28" }, { "id": "28bfa1c6-bd27-4140-bb87-595be48bce6b", "command": "type", "target": "name=name", "value": "NewIDE" }, { "id": "e531dde0-11f0-4340-ae3c-78859335d1f1", "command": "clickAt", "target": "//input[@type='search']", "value": "-419,10" }, { "id": "a75288ca-2e25-4282-9744-e11c66c4461a", "command": "type", "target": "//input[@type='search']", "value": "Dutch" }, { "id": "b2f413aa-68bb-4b5e-b131-709055bffe18", "command": "clickAt", "target": "name=min-age", "value": "-425,7" }, { "id": "e15873b7-b444-4001-86df-c652d3009cad", "command": "type", "target": "name=min-age", "value": "18" }, { "id": "688c8136-2949-4cf4-a30a-a953b897b7e2", "command": "type", "target": "name=max-age", "value": "45" }, { "id": "f2464b39-66d9-4f32-9750-5f42df6e296c", "command": "select", "target": "name=genders", "value": "label=Male" }, { "id": "ea60cc0e-1dc5-4cf1-8067-f7aec6490cd6", "command": "clickAt", "target": "link=Locations", "value": "-390,25" }, { "id": "bd7c9e82-22e6-4e7c-a6d0-52626252239a", "command": "clickAt", "target": "//span[@id='react-select-2--value']/div", "value": "-340,23" }, { "id": "6e381fef-26fd-4c84-9500-d040556f3a43", "command": "clickAt", "target": "//button[@type='submit']", "value": "-424,29" }, { "id": "e99d6800-945b-40f1-a255-594c7e4fffd6", "command": "runScript", "target": ["window.scrollTo(0,0)"], "value": "" }] }], "suites": [], "urls": ["URL"] }

Log:

Running 'Untitled'
1.Trying to execute open on /campaigns-overview...
2.Trying to execute clickAt on //nav[@id='sidenavbar']/ul/li[5]/a/i with value -7,-4...
3.Trying to execute clickAt on //nav[@id='sidenavbar']/ul/li[5]/div/ul/li[2]/a/div/p with value 6,20...
4.Trying to execute clickAt on //section[@id='dashboard']/section/header/div/div[2]/button with value 129,8...
5.Trying to execute clickAt on xpath=(//a[contains(text(),'Open targeting')])[2] with value 86,17...
6.Trying to execute mouseOver on xpath=(//a[contains(text(),'Open targeting')])[2]...
7.Trying to execute mouseOut on xpath=(//a[contains(text(),'Open targeting')])[2]...
8.Trying to execute clickAt on name=name with value -299,28...
9.Trying to execute type on name=name with value NewIDE...
10.Trying to execute clickAt on //input[@type='search'] with value -419,10...
11.Trying to execute type on //input[@type='search'] with value Dutch...
12.Trying to execute clickAt on name=min-age with value -425,7...
13.Trying to execute type on name=min-age with value 18...
Cannot set the selection end
14.Trying to execute type on name=max-age with value 45...
Cannot set the selection end
15.Trying to execute select on name=genders with value label=Male...
16.Trying to execute clickAt on link=Locations with value -390,25...
17.Trying to execute clickAt on //span[@id='react-select-2--value']/div with value -340,23...
18.Trying to execute clickAt on //button[@type='submit'] with value -424,29...
19.Trying to execute runScript on window.scrollTo(0,0)...
'Untitled' completed with 1 error(s)

2 lines seem to fail

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

I runned the old test with removing the iframes! Seems to be it! 👍

This seems to work but still all the errors throwing me that all those elements are not found. Does this mean that somehow the css selectors are not working anymore in the new IDE?

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

We use the same selector builders as the old one,
I can only assume that once you remove the iframes the css changes, thus making them not be found

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

Hmmm this is not the case?

The source is still completely the same of our application nothing changed.

The old IDE still plays the test case without any problems.
The new IDE throws for every single line a error nothing is found.

We removed the iframes Hotjar and our Intercom.

Did also some simple test on other websites targeting some simple links with that approach with the same results.

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

Awesome! Thanks 👍

from selenium-ide.

pgroot91 avatar pgroot91 commented on May 20, 2024

@olds97lss The same case for using variables that are not taking in to account in next coming test cases and suites! :|

I used always a single config file with a bunch of variables. Not i need to add them per test case that doesn't make it very maintainable.

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

This issue is starting to get a bit off topic.
@olds97lss If I understood you correctly, you want a way to specify the entire URL in the open command, rather than the combination of Base URL + open?
@pgroot91 can you explain what kind of behavior you would like variables to have? a global place to declare variables to be used throughout all the test cases?
And please open a new issue with that explanation.

from selenium-ide.

bryanl-csi avatar bryanl-csi commented on May 20, 2024

@corevo Yes sir. I never really used the base url in my scripts since I tend to write them to hop from one site to another for work. Within one script, I'll open a jsp that fires a query with parameters I add on to the url for updating database items, then I open the same jsp again but with new parameters to do a lookup. After confirming the update was successful, I open the site I need to test, which is a totally different url.

That's just one instance, but I do open full url's directly pretty much all the time since it's easier for me to maintain.

from selenium-ide.

bryanl-csi avatar bryanl-csi commented on May 20, 2024

@corevo I can open my own ticket, just wasn't sure what to do this early on.

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

from selenium-ide.

drexlma avatar drexlma commented on May 20, 2024
<title>planko</title>
planko
open /jobs/?ref=3&ausbildung=show&nebenjob=show&praktikum=show&action=Filter
pause 3000
clickAndWait css=img.logo
clickAndWait link=Vollzeit-Jobs
clickAndWait css=a.button > span
clickAndWait link=JETZT INSERIEREN

Trying to execute clickAndWait on css=img.logo... Failed:
Unknown command: clickAndWait
5.Trying to execute clickAndWait on link=Vollzeit-Jobs... Failed:
Unknown command: clickAndWait
6.Trying to execute clickAndWait on css=a.button > span... Failed:
Unknown command: clickAndWait

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

Page source?

from selenium-ide.

drexlma avatar drexlma commented on May 20, 2024

jobs-regensburg.com

from selenium-ide.

corevo avatar corevo commented on May 20, 2024

Since the new IDE waits automatically for you, all you have to do is change the deprecated clickAndWait to click at
screen shot 2018-02-21 at 16 36 55

from selenium-ide.

setiseta avatar setiseta commented on May 20, 2024

we use some waitForVisible to check if a site is loaded correctly. not for clicking or something else, just to check if this target is available or visible on page.
any suggestions how to do this with the new IDE?

from selenium-ide.

Nachikethan1 avatar Nachikethan1 commented on May 20, 2024

Why clickandWait command is depreciated from Selenium IDE? I came to know the Wait is done automatically now, but it is not the case here.. i have a page with three buttons, clicking any one will reload the page, i have to record clicking all three buttons but the new version IDE doesn't do the job where it was doing perfectly fine with clickandWait command. I always get two buttons clicked skipping any one with the new version. I tried using Clickat command with no use. Please can you add the ClickandWait command back, i had to use another automation software which provided Clickandwait command to solve it.

from selenium-ide.

98gmarquee avatar 98gmarquee commented on May 20, 2024

I know this is relatively old, but wasn't sure if it warranted a new ticket being made. I noticed when I import my older IDE scripts, my "waitforvisible" commands are being omitted entirely from the script in the new ide. With some commands, it loads them, but they are invalid and it fails, so then I change them as needed. But the waitforvisible entire line is being omitted.

I noticed this a while back and forgot about it until today when I was importing an older script that had a lot of waitforvisibles in it.

In the instance I'm using it, it's with a shopping cart. I have something similar to the following:
click|id=EE_cart
waitforvisible|xpath for cart header
waitforvisible|xpath for item I just placed in the cart
click|id=EE_cart
waitforNOTvisible|xpath for cart header

When I import, only the click|id=EE_cart remain in the script.

from selenium-ide.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.