This dialog is created here https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/raw-video-util.js#L246
According to https://api.jqueryui.com/dialog/#option-buttons ID or class can't be added Maybe some pre-defined markup can be created to bypass this On Sun, 1 Nov 2020 at 05:35, [email protected] <[email protected]> wrote: > That worked for the first screen. Thanks! > > But then the next screen is the "Permission is required" screen. See below > screenshot and screen paste link. > > Generally there is some sort of issue where you can often notice that the > video screen stays empty. It also happens with 2 browsers locally quite > often. > > However with this latest snapshot: I noticed that in the latest snapshot > the video/mic enable functionality has some issues. The icons sometimes > become unresponsive, the audio/video sharing state does not correspond with > the current sharing setting icons. > > Both will require a bit more testing to replicate more stable. > > However it would be good to find out below dialog so I can update my > Selenium test. > > What would be below dialog and how to set a class on it so I can uniquely > identify this OK button ? > > Thanks > Seb > > Screen: (see also: https://snipboard.io/DTmRyo.jpg) > [image: image.png] > > Sebastian Wagner > Director Arrakeen Solutions > http://arrakeen-solutions.co.nz/ > > <https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url> > <https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url> > > > On Fri, 30 Oct 2020 at 15:32, <[email protected]> wrote: > >> Great let try that! >> >> Sent from my iPhone >> >> > On 30/10/2020, at 2:59 PM, Maxim Solodovnik <[email protected]> >> wrote: >> > >> > You can >> > >> > go to >> > >> https://github.com/apache/openmeetings/blob/master/openmeetings-web/src/main/java/org/apache/openmeetings/web/room/RoomPanel.html#L37 >> > add `class="room-nickname-dialog"` >> > >> > use `#contents .room-nickname-dialog .btn.btn-outline-primary` >> > or even better >> > `.room-container .room-nickname-dialog .btn.btn-outline-primary` >> > >> > p.s. finally I wrote all UI tests using WicketTester, which is not ideal >> > but it works :) >> > >> > >> > >> >> On Fri, 30 Oct 2020 at 08:51, [email protected] < >> [email protected]> >> >> wrote: >> >> >> >> Hi, >> >> >> >> I want to write a selenium test that clicks away the Guest login modal >> >> window. >> >> >> >> See below image for a screenshot of the modal or click here: >> >> https://snipboard.io/fLAHRk.jpg >> >> >> >> But the "OK" button in that modal has a changing ID on every reload. >> >> And it has a very generic selector, for example I tried with "#contents >> >> .btn.btn-outline-primary" >> >> >> >> But using Selenium it finds too many matches for this selector: >> >> Running command: waitForElementVisible ('#contents >> >> .btn.btn-outline-primary', 20000) >> >> >> >> Warning: More than one element (19) found for element <#contents >> >> .btn.btn-outline-primary> with selector: "#contents >> >> .btn.btn-outline-primary". Only the first one will be used. >> >> >> >> => There are obviously too many of those OK buttons. So it's >> impossible to >> >> click this modal away. >> >> >> >> Is there a way to set a CSS class or ID that is unique (and >> *predictable*!) >> >> so this guest popup can be clicked away via Selenium ? >> >> >> >> Thanks >> >> Seb >> >> >> >> Guest popup login: >> >> [image: image.png] >> >> >> >> >> >> Sebastian Wagner >> >> Director Arrakeen Solutions >> >> http://arrakeen-solutions.co.nz/ >> >> >> >> < >> https://www.youracclaim.com/badges/da4e8828-743d-4968-af6f-49033f10d60a/public_url >> > >> >> < >> https://www.youracclaim.com/badges/b7e709c6-aa87-4b02-9faf-099038475e36/public_url >> > >> >> >> > >> > >> > -- >> > Best regards, >> > Maxim >> > -- Best regards, Maxim
