!zyIwMfkvlwblbZsUty:matrix.org

selenium

938 Members
5 Servers

Load older messages


SenderMessageTime
17 May 2022
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guru using System.Collections.ObjectModel; namespace OpenQA.Selenium { public interface ISearchContext { IWebElement FindElement(By by); ReadOnlyCollection IWebElement FindElements(By by); } } 16:54:20
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guru This is what I wanted to async / await 16:54:35
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guru using System.Collections.ObjectModel; namespace OpenQA.Selenium { public interface ISearchContext { IWebElement FindElement(By by); ReadOnlyCollection IWebElement FindElements(By by); } } 16:54:36
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guruimage.png
Download image.png
16:55:48
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guru I wanted to async / await this method. 16:56:02
@_slack_seleniumhq_U4WHRRY6Q:matrix.orgdiemol this is a number we have seen from previous setups, as a starting baseline 16:56:03
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guruRedacted or Malformed Event16:56:06
@_slack_seleniumhq_U019LMRPG1M:matrix.orgqa guru using System.Collections.ObjectModel; namespace OpenQA.Selenium { public interface ISearchContext { IWebElement FindElement(By by); ReadOnlyCollection IWebElement FindElements(By by); } } 16:56:17
@_slack_seleniumhq_U02DQMAR46S:matrix.orgIan For CPU, I can understood your point. But for memory, if start one suite of Hub and Node, the driver will hold MB level resource, so you just afraid of the browser with rich webpage? 16:56:55
@_slack_seleniumhq_U4WHRRY6Q:matrix.orgdiemol yes, it is whatever the site under test uses it might be below 1GB, but you will only know that after measuring performance again, those are baselines 16:57:46
@_slack_seleniumhq_U21JWNZ1C:matrix.orgjimevans qa guru Methods in the .NET bindings are not marked async. Full stop. The screenshot of our earlier conversation tells you exactly why the .NET bindings maintaners (me) haven’t done it yet, and are not doing it in the near or even medium future. What’s your point? 16:58:56
@_slack_seleniumhq_U02DQMAR46S:matrix.orgIan Got. Thanks 17:00:03
@brutusmongus:libera.chat@brutusmongus:libera.chat diemol: I appreciate the information. 17:01:51
@brutusmongus:libera.chat@brutusmongus:libera.chat left the room.17:29:43
@judithbnks:matrix.orgjudithbnks joined the room.17:42:03
@_slack_seleniumhq_U4GA74JVA:matrix.orgphebus joined the room.17:50:01
@_slack_seleniumhq_U4GA74JVA:matrix.orgphebus sorry for necroing this thread but i was looking for information on the latest wrt video in kubernetes and i’ve got a config with the video container in the same pod as the node container and it starts but doesn’t seem to be able to find the display and i’m not sure why that is. any insight would be helpful. also if there really is something fundamental that doesn’t exist yet to make this work just let me know and i’ll stop fooling around with it but i feel like i’m close? right now the error i get is:
a bunch of
Waiting before next display check...
Waiting before next display check...
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --disable-debug --disable-doc --disable-ffplay --enable-shared --enable-avresample --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-gpl --enable-libass --enable-fontconfig --enable-libfreetype --enable-libvidstab --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libxcb --enable-libx265 --enable-libxvid --enable-libx264 --enable-nonfree --enable-openssl --enable-libfdk_aac --enable-postproc --enable-small --enable-version3 --enable-libbluray --enable-libzmq --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-libopenjpeg --enable-libkvazaar --enable-libaom --extra-libs=-lpthread --enable-libsrt --enable-libaribb24 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[x11grab @ 0x56461aaacb80] Cannot open display selenium-node-chrome:99.0, error 1.
selenium-node-chrome:99.0: Input/output error
2022-05-17 15:42:01,783 INFO exited: video-recording (exit status 1; not expected)
does the display id need to be configured in the node container somehow?
17:50:01
@yose:libera.chat@yose:libera.chat joined the room.18:11:54
@yose:libera.chat@yose:libera.chat Hello, I'm looking to implement SeleniumGrid 4 in my local test environment for improve the test speed and have a doubt on which Mode will fits better my current configuration. The documentation I found so far does not define the advantages of use Hub-Node or Distributed. So far the Distributed is more suitable for larger grids 18:16:04
@yose:libera.chat@yose:libera.chat (https://www.selenium.dev/documentation/grid/getting_started/). Is any specific number of nodes from where use the Distributed is better over the hub-node mode. Since they start the same components, I'm not sure in which to use. Thank you in advance. 18:16:05
@martinf:libera.chat@martinf:libera.chat joined the room.19:01:25
@_slack_seleniumhq_U03GJPUR7R6:matrix.org_slack_seleniumhq_U03GJPUR7R6 joined the room.19:34:19
@Ivan88:libera.chat@Ivan88:libera.chat left the room.20:12:00
@yose:libera.chat@yose:libera.chat left the room.20:16:44
@californiatokens:matrix.orgcaliforniatokens joined the room.20:46:25
@_slack_seleniumhq_U03E137HTM1:matrix.orgarush saxena I am using following code in golang to capture a full page screenshot of the website through CDP but it is not working
package main

import (
	"fmt"

	"context"
	"io/ioutil"
	"time"
	"github.com/mafredri/cdp"
	"github.com/mafredri/cdp/protocol/emulation"
	"github.com/mafredri/cdp/protocol/page"
	"github.com/mafredri/cdp/rpcc"
)


func main() {
	ctx, cancel := context.WithTimeout(context.Background(), time.Hour * 1)
	defer cancel()

	// Initiate a new RPC connection to the Chrome DevTools Protocol target.
	conn, err := rpcc.DialContext(ctx, " ws://172.20.10.2:4444/session/82d41ac1d90a58a8b8798e4adaa5e9a0/se/cdp ")
	if err != nil {
		fmt.Println(err)
	}
	defer conn.Close() // Leaving connections open will leak memory.

	c := cdp.NewClient(conn)
	
	emulationArgsPointer := emulation.NewSetDeviceMetricsOverrideArgs(645,9651,2.0,false)
	emulation:= c.Emulation.SetDeviceMetricsOverride(ctx,emulationArgsPointer)
	if emulation != nil {
		fmt.Println("error here")
		fmt.Println(emulation)
	}
	
	fmt.Println(emulation)
	// Capture a screenshot of the current page.
	screenshotName := "screenshot.jpg"
	screenshotArgs := page.NewCaptureScreenshotArgs()
	screenshot, err := c.Page.CaptureScreenshot(ctx, screenshotArgs)
	if err != nil {
		fmt.Println(err)
	}
	if err = ioutil.WriteFile(screenshotName, screenshot.Data, 0644); err != nil {
		fmt.Println(err)
	}
	
}
Error : cdp.Emulation: SetDeviceMetricsOverride: rpc error: 'Emulation.setDeviceMetricsOverride' wasn't found (code = -32601) cdp.Page: CaptureScreenshot: rpc error: 'Page.captureScreenshot' wasn't found (code = -32601)
20:48:34
@Guest6994:libera.chat@Guest6994:libera.chat joined the room.22:23:24
@Guest6994:libera.chat@Guest6994:libera.chat left the room.22:24:29
@_slack_seleniumhq_U03FVRYDL03:matrix.org_slack_seleniumhq_U03FVRYDL03 joined the room.22:46:13
@martinf:libera.chat@martinf:libera.chat left the room.22:59:29

There are no newer messages yet.


Back to Room List