Skip to content
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

[pull] master from jitsi:master #140

Merged
merged 1 commit into from
Jun 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ private void clickAutoAssignButton()
*
* @param remoteId id the participant for which to open the menu
*/
private void openParticipantContextMenu(String remoteId)
private void openParticipantContextMenu(String remoteId, boolean retry)
{
WebElement listItem = TestUtils.waitForElementBy(participant.getDriver(),
By.xpath("//div[@id='participant-item-" + remoteId + "']"), 5);
Expand All @@ -426,8 +426,27 @@ private void openParticipantContextMenu(String remoteId)
hoverOnParticipantListItem.moveToElement(listItem);
hoverOnParticipantListItem.perform();

String cssSelector = MeetUIUtils.getAccessibilityCSSSelector(PARTICIPANT_MORE_LABEL);
listItem.findElement(By.cssSelector(cssSelector)).click();
try
{
String cssSelector = MeetUIUtils.getAccessibilityCSSSelector(PARTICIPANT_MORE_LABEL);
listItem.findElement(By.cssSelector(cssSelector)).click();
}
catch (ElementNotInteractableException e)
{
if (retry)
{
throw e;
}

// workaround of exception we sometimes see
// let's move the mous to local video and then back try the context menu
WebElement toolbar = participant.getDriver().findElement(By.id("localVideoContainer"));
Actions hoverOnToolbar = new Actions(participant.getDriver());
hoverOnToolbar.moveToElement(toolbar);
hoverOnToolbar.perform();

openParticipantContextMenu(remoteId, true);
}
}

/**
Expand All @@ -440,7 +459,7 @@ public void sendParticipantToBreakoutRoom(WebParticipant participantToSend, Stri
{
String remoteParticipantId = participantToSend.getEndpointId();

openParticipantContextMenu(remoteParticipantId);
openParticipantContextMenu(remoteParticipantId, false);

String cssSelector = MeetUIUtils.getAccessibilityCSSSelector(roomName);
WebElement sendButton = TestUtils.waitForElementBy(participant.getDriver(),
Expand Down
Loading