How to use ElementX method of rod Package

Best Rod code snippet using rod.ElementX

query.go

Source:query.go Github

copy

Full Screen

...111}112// HasX an element that matches the XPath selector113// 在页面中用XPath查找某个元素是否存在114func (p *Page) HasX(selector string) (bool, *Element, error) {115 el, err := p.Sleeper(NotFoundSleeper).ElementX(selector)116 if errors.Is(err, &ErrElementNotFound{}) {117 return false, nil, nil118 }119 if err != nil {120 return false, nil, err121 }122 return true, el.Sleeper(p.sleeper), nil123}124// HasR an element that matches the css selector and its display text matches the jsRegex.125// 在页面中用css选择器匹配,其显示文本与jsRegex匹配,使用组合的方式查找某个元素是否存在。126func (p *Page) HasR(selector, jsRegex string) (bool, *Element, error) {127 el, err := p.Sleeper(NotFoundSleeper).ElementR(selector, jsRegex)128 if errors.Is(err, &ErrElementNotFound{}) {129 return false, nil, nil130 }131 if err != nil {132 return false, nil, err133 }134 return true, el.Sleeper(p.sleeper), nil135}136// Element retries until an element in the page that matches the CSS selector, then returns137// the matched element.138// Element 会重试,直到页面中的元素与CSS选择器匹配,然后返回匹配的元素。139func (p *Page) Element(selector string) (*Element, error) {140 return p.ElementByJS(evalHelper(js.Element, selector))141}142// ElementR retries until an element in the page that matches the css selector and it's text matches the jsRegex,143// then returns the matched element.144// ElementR 会重试,直到页面中出现符合css选择器的元素,并且其文本符合jsRegex,然后返回匹配的元素。145func (p *Page) ElementR(selector, jsRegex string) (*Element, error) {146 return p.ElementByJS(evalHelper(js.ElementR, selector, jsRegex))147}148// ElementX retries until an element in the page that matches one of the XPath selectors, then returns149// the matched element.150// ElementX 会重试,直到页面中的元素与XPath选择器匹配,然后返回匹配的元素。151func (p *Page) ElementX(xPath string) (*Element, error) {152 return p.ElementByJS(evalHelper(js.ElementX, xPath))153}154// ElementByJS returns the element from the return value of the js function.155// ElementByJS 从js函数的返回值返回元素。156// If sleeper is nil, no retry will be performed.157// 如果 sleeper 是 nil,则不会执行重试158// By default, it will retry until the js function doesn't return null.159// 默认情况下,会一直重试直到 JS 函数不会返回 null160// To customize the retry logic, check the examples of Page.Sleeper.161// 要自定义重试逻辑,请查看 Page.Sleeper 的示例。162func (p *Page) ElementByJS(opts *EvalOptions) (*Element, error) {163 var res *proto.RuntimeRemoteObject164 var err error165 removeTrace := func() {}166 err = utils.Retry(p.ctx, p.sleeper(), func() (bool, error) {167 remove := p.tryTraceQuery(opts)168 removeTrace()169 removeTrace = remove170 res, err = p.Evaluate(opts.ByObject())171 if err != nil {172 return true, err173 }174 if res.Type == proto.RuntimeRemoteObjectTypeObject && res.Subtype == proto.RuntimeRemoteObjectSubtypeNull {175 return false, nil176 }177 return true, nil178 })179 removeTrace()180 if err != nil {181 return nil, err182 }183 if res.Subtype != proto.RuntimeRemoteObjectSubtypeNode {184 return nil, &ErrExpectElement{res}185 }186 return p.ElementFromObject(res)187}188// Elements returns all elements that match the css selector189// 返回和 CSS 选择器匹配的所有元素190func (p *Page) Elements(selector string) (Elements, error) {191 return p.ElementsByJS(evalHelper(js.Elements, selector))192}193// ElementsX returns all elements that match the XPath selector194// 返回和 XPath 选择器匹配的所有元素195func (p *Page) ElementsX(xpath string) (Elements, error) {196 return p.ElementsByJS(evalHelper(js.ElementsX, xpath))197}198// ElementsByJS returns the elements from the return value of the js199// ElementsByJS 从 js 的返回值中返回元素。200func (p *Page) ElementsByJS(opts *EvalOptions) (Elements, error) {201 res, err := p.Evaluate(opts.ByObject())202 if err != nil {203 return nil, err204 }205 if res.Subtype != proto.RuntimeRemoteObjectSubtypeArray {206 return nil, &ErrExpectElements{res}207 }208 defer func() { err = p.Release(res) }()209 list, err := proto.RuntimeGetProperties{210 ObjectID: res.ObjectID,211 OwnProperties: true,212 }.Call(p)213 if err != nil {214 return nil, err215 }216 elemList := Elements{}217 for _, obj := range list.Result {218 if obj.Name == "__proto__" || obj.Name == "length" {219 continue220 }221 val := obj.Value222 if val.Subtype != proto.RuntimeRemoteObjectSubtypeNode {223 return nil, &ErrExpectElements{val}224 }225 el, err := p.ElementFromObject(val)226 if err != nil {227 return nil, err228 }229 elemList = append(elemList, el)230 }231 return elemList, err232}233// Search for the given query in the DOM tree until the result count is not zero, before that it will keep retrying.234// 在DOM树中搜索给定的查询,直到结果计数不为零,在此之前,它将不断重试。235// The query can be plain text or css selector or xpath.236// 查询可以是纯文本、css选择器或xpath。237// It will search nested iframes and shadow doms too.238// 它也会搜索嵌套的iframes和影子dom。239func (p *Page) Search(query string) (*SearchResult, error) {240 sr := &SearchResult{241 page: p,242 restore: p.EnableDomain(proto.DOMEnable{}),243 }244 err := utils.Retry(p.ctx, p.sleeper(), func() (bool, error) {245 if sr.DOMPerformSearchResult != nil {246 _ = proto.DOMDiscardSearchResults{SearchID: sr.SearchID}.Call(p)247 }248 res, err := proto.DOMPerformSearch{249 Query: query,250 IncludeUserAgentShadowDOM: true,251 }.Call(p)252 if err != nil {253 return true, err254 }255 sr.DOMPerformSearchResult = res256 if res.ResultCount == 0 {257 return false, nil258 }259 result, err := proto.DOMGetSearchResults{260 SearchID: res.SearchID,261 FromIndex: 0,262 ToIndex: 1,263 }.Call(p)264 if err != nil {265 // when the page is still loading the search result is not ready266 // 当页面仍然在加载时,此时的搜索结果尚未准备好。267 if errors.Is(err, cdp.ErrCtxNotFound) ||268 errors.Is(err, cdp.ErrSearchSessionNotFound) {269 return false, nil270 }271 return true, err272 }273 id := result.NodeIds[0]274 // TODO: This is definitely a bad design of cdp, hope they can optimize it in the future.275 // It's unnecessary to ask the user to explicitly call it.276 // 没有必要要求用户明确地调用它。277 //278 // When the id is zero, it means the proto.DOMDocumentUpdated has fired which will279 // invlidate all the existing NodeID. We have to call proto.DOMGetDocument280 // to reset the remote browser's tracker.281 // 当id为0时,意味着proto.DOMDocumentUpdated已经触发,它将调用所有现有的NodeID。282 // 我们必须调用proto.DOMGetDocument来重置远程浏览器的跟踪器。283 if id == 0 {284 _, _ = proto.DOMGetDocument{}.Call(p)285 return false, nil286 }287 el, err := p.ElementFromNode(&proto.DOMNode{NodeID: id})288 if err != nil {289 return true, err290 }291 sr.First = el292 return true, nil293 })294 if err != nil {295 return nil, err296 }297 return sr, nil298}299// SearchResult handler300type SearchResult struct {301 *proto.DOMPerformSearchResult302 page *Page303 restore func()304 // First element in the search result305 // 在搜索结果中的第一个元素306 First *Element307}308// Get l elements at the index of i from the remote search result.309// 从远程搜索结果中获取索引为i的l个元素。310func (s *SearchResult) Get(i, l int) (Elements, error) {311 result, err := proto.DOMGetSearchResults{312 SearchID: s.SearchID,313 FromIndex: i,314 ToIndex: i + l,315 }.Call(s.page)316 if err != nil {317 return nil, err318 }319 list := Elements{}320 for _, id := range result.NodeIds {321 el, err := s.page.ElementFromNode(&proto.DOMNode{NodeID: id})322 if err != nil {323 return nil, err324 }325 list = append(list, el)326 }327 return list, nil328}329// All returns all elements330// 返回所有元素331func (s *SearchResult) All() (Elements, error) {332 return s.Get(0, s.ResultCount)333}334// Release the remote search result335// 释放搜索结果336func (s *SearchResult) Release() {337 s.restore()338 _ = proto.DOMDiscardSearchResults{SearchID: s.SearchID}.Call(s.page)339}340type raceBranch struct {341 condition func(*Page) (*Element, error)342 callback func(*Element) error343}344// RaceContext stores the branches to race345// 存储了 race 的分支346type RaceContext struct {347 page *Page348 branches []*raceBranch349}350// Race creates a context to race selectors351// 为 race 选择器创建了一个 RaceContext352func (p *Page) Race() *RaceContext {353 return &RaceContext{page: p}354}355// Element the doc is similar to MustElement356// 类似于 MustElement357func (rc *RaceContext) Element(selector string) *RaceContext {358 rc.branches = append(rc.branches, &raceBranch{359 condition: func(p *Page) (*Element, error) { return p.Element(selector) },360 })361 return rc362}363// ElementFunc takes a custom function to determine race success364// ElementFunc 采用自定义函数确定 race 成功365func (rc *RaceContext) ElementFunc(fn func(*Page) (*Element, error)) *RaceContext {366 rc.branches = append(rc.branches, &raceBranch{367 condition: fn,368 })369 return rc370}371// ElementX the doc is similar to ElementX372// 类似于 ElementX373func (rc *RaceContext) ElementX(selector string) *RaceContext {374 rc.branches = append(rc.branches, &raceBranch{375 condition: func(p *Page) (*Element, error) { return p.ElementX(selector) },376 })377 return rc378}379// ElementR the doc is similar to ElementR380//类似于 ElementR381func (rc *RaceContext) ElementR(selector, regex string) *RaceContext {382 rc.branches = append(rc.branches, &raceBranch{383 condition: func(p *Page) (*Element, error) { return p.ElementR(selector, regex) },384 })385 return rc386}387// ElementByJS the doc is similar to MustElementByJS388// 类似于 MustELementByJS389func (rc *RaceContext) ElementByJS(opts *EvalOptions) *RaceContext {390 rc.branches = append(rc.branches, &raceBranch{391 condition: func(p *Page) (*Element, error) { return p.ElementByJS(opts) },392 })393 return rc394}395// Handle adds a callback function to the most recent chained selector.396// Handle 为最近的链式选择器添加一个回调函数。397// The callback function is run, if the corresponding selector is398// present first, in the Race condition.399// 如果相应的选择器首先出现在 trace 条件中,回调函数就会运行。400func (rc *RaceContext) Handle(callback func(*Element) error) *RaceContext {401 rc.branches[len(rc.branches)-1].callback = callback402 return rc403}404// Do the race405// 执行 Trace406func (rc *RaceContext) Do() (*Element, error) {407 var el *Element408 err := utils.Retry(rc.page.ctx, rc.page.sleeper(), func() (stop bool, err error) {409 for _, branch := range rc.branches {410 bEl, err := branch.condition(rc.page.Sleeper(NotFoundSleeper))411 if err == nil {412 el = bEl.Sleeper(rc.page.sleeper)413 if branch.callback != nil {414 err = branch.callback(el)415 }416 return true, err417 } else if !errors.Is(err, &ErrElementNotFound{}) {418 return true, err419 }420 }421 return422 })423 return el, err424}425// Has an element that matches the css selector426// 判断是否有和CSS选择器相匹配的元素427func (el *Element) Has(selector string) (bool, *Element, error) {428 el, err := el.Element(selector)429 if errors.Is(err, &ErrElementNotFound{}) {430 return false, nil, nil431 }432 return err == nil, el, err433}434// HasX an element that matches the XPath selector435// 判断是否有和XPath相匹配的元素436func (el *Element) HasX(selector string) (bool, *Element, error) {437 el, err := el.ElementX(selector)438 if errors.Is(err, &ErrElementNotFound{}) {439 return false, nil, nil440 }441 return err == nil, el, err442}443// HasR returns true if a child element that matches the css selector and its text matches the jsRegex.444// 如果有一个符合css选择器的子元素,并且其文本符合jsRegex,则HasR返回true。445func (el *Element) HasR(selector, jsRegex string) (bool, *Element, error) {446 el, err := el.ElementR(selector, jsRegex)447 if errors.Is(err, &ErrElementNotFound{}) {448 return false, nil, nil449 }450 return err == nil, el, err451}452// Element returns the first child that matches the css selector453// 返回第一个和CSS选择器匹配的子元素454func (el *Element) Element(selector string) (*Element, error) {455 return el.ElementByJS(evalHelper(js.Element, selector))456}457// ElementR returns the first child element that matches the css selector and its text matches the jsRegex.458// ElementR返回符合css选择器的第一个子元素,并且其文本符合jsRegex。459func (el *Element) ElementR(selector, jsRegex string) (*Element, error) {460 return el.ElementByJS(evalHelper(js.ElementR, selector, jsRegex))461}462// ElementX returns the first child that matches the XPath selector463// 返回第一个和 XPath 选择器相匹配的子元素464func (el *Element) ElementX(xPath string) (*Element, error) {465 return el.ElementByJS(evalHelper(js.ElementX, xPath))466}467// ElementByJS returns the element from the return value of the js468// ElementByJS 从 js 的返回值中返回该元素。469func (el *Element) ElementByJS(opts *EvalOptions) (*Element, error) {470 e, err := el.page.Sleeper(NotFoundSleeper).ElementByJS(opts.This(el.Object))471 if err != nil {472 return nil, err473 }474 return e.Sleeper(el.sleeper), nil475}476// Parent returns the parent element in the DOM tree477// 返回 DOM 树中的父元素。478func (el *Element) Parent() (*Element, error) {479 return el.ElementByJS(Eval(`() => this.parentElement`))...

Full Screen

Full Screen

process.go

Source:process.go Github

copy

Full Screen

...49 var result interface{}50 logger.Infof("Processing element: %v", element.ElementName)51 switch element.Action {52 case "Click":53 elem := S.Page.Timeout(15 * time.Second).MustElementX(element.Xpath)54 elem.ScrollIntoView()55 elem.MustClick()56 logger.Debugf("Clicked: %v", element.ElementName)57 case "SetValue":58 elem, err := S.Page.ElementX(element.Xpath)59 if err != nil {60 logger.Errorf("Error: %v", err)61 return nil, err62 }63 elem.MustInput(element.ActionArg)64 logger.Debugf("Set value: %v", element.ActionArg)65 case "GetText":66 elem, err := S.Page.ElementX(element.Xpath)67 if err != nil {68 logger.Errorf("Error: %v", err)69 return nil, err70 }71 text, err := elem.Text()72 logger.Debugf("Text value: %v", text)73 return text, err74 case "ImageSrc":75 el, err := S.Page.Timeout(3 * time.Second).ElementX(element.Xpath)76 if err != nil {77 logger.Errorf("Error: %v", err)78 // recover from panic79 defer func() {80 if r := recover(); r != nil {81 logger.Errorf("Recover from Error: %v", r)82 S.Page.KeyActions().Press(input.Escape).Release(input.Escape).MustDo()83 }84 }()85 panic(err)86 }87 el.ScrollIntoView()88 value, err := el.Attribute("src")89 logger.Debugf("image: %s \n", *value)90 S.Page.KeyActions().Press(input.Escape).Release(input.Escape).MustDo()91 logger.Debugf("Closed Image: %v", element.ElementName)92 return value, nil93 case "MultiImageSrc":94 el, err := S.Page.Timeout(3 * time.Second).ElementX(element.Xpath)95 if err != nil {96 logger.Errorf("Error: %v", err)97 // recover from panic98 defer func() {99 if r := recover(); r != nil {100 logger.Errorf("Recover from Error: %v", r)101 S.Page.KeyActions().Press(input.Escape).Release(input.Escape).MustDo()102 }103 }()104 panic(err)105 }106 el.ScrollIntoView()107 value, err := el.Attribute("src")108 logger.Debugf("image: %s \n", *value)109 S.Page.KeyActions().Press(input.Escape).Release(input.Escape).MustDo()110 logger.Debugf("Closed Image: %v", element.ElementName)111 return value, nil112 }113 return result, nil114}115func (S *Scraper) ProcessError(xpath string, name string) error {116 logger.Infof("Processing error: %v", name)117 el, err := S.Page.ElementX(xpath)118 if err != nil {119 logger.Errorf("Error: %v", err)120 return err121 }122 text, err := el.Text()123 if err != nil {124 logger.Errorf("Error: %v", err)125 return err126 }127 logger.Debugf("Text: %v", text)128 return nil129}...

Full Screen

Full Screen

gopher.go

Source:gopher.go Github

copy

Full Screen

...20 page, err := rd.getPage(postID, creatorName)21 if err != nil {22 return nil, fmt.Errorf("unable to get page for post ID %d under creator '%s': %w", postID, creatorName, err)23 }24 actorNameAnchor, err := page.ElementX("//div[contains(@class, 'g-user-name')]")25 if err != nil {26 return nil, fmt.Errorf("failed to resolve username anchor: %w", err)27 }28 actorName := actorNameAnchor.MustText()29 actorImage, err := xpath(page, "//a[contains(@class, 'g-avatar')]", "//img")30 if err != nil {31 return nil, fmt.Errorf("failed to resolve actor image anchor: %w", err)32 }33 actorImageSrc := actorImage.MustAttribute("src")34 var actorImageURL string35 if actorImageSrc != nil {36 actorImageURL = *actorImageSrc37 }38 videoDescriptionDivs, err := page.ElementsX("//div[contains(@class, 'b-post__text')]")39 if err != nil {40 return nil, fmt.Errorf("failed to resolve the video description div: %w", err)41 }42 var videoDescription string43 if len(videoDescriptionDivs) > 0 {44 videoDescription = videoDescriptionDivs[0].MustText()45 }46 return &model.Post{47 Actors: []*model.ActorDetails{48 {49 ActorName: actorName,50 ProfileImageURL: actorImageURL,51 },52 },53 VideoDetails: &model.VideoDetails{54 VideoDescription: videoDescription,55 },56 }, nil57}58func xpath(page *rod.Page, xpaths ...string) (*rod.Element, error) {59 var currentElement *rod.Element60 for xpathIndex, xpath := range xpaths {61 var xpathErr error62 if xpathIndex == 0 {63 currentElement, xpathErr = page.ElementX(xpath)64 } else {65 currentElement, xpathErr = currentElement.ElementX(xpath)66 }67 if xpathErr != nil {68 return nil, fmt.Errorf("unable to evaluate xpath '%s' (at index %d): %w", xpath, xpathIndex, xpathErr)69 }70 }71 return currentElement, nil72}73func (rd *RodGopher) VerifyExists(postID int64, creatorName string) (bool, error) {74 _, err := rd.getPage(postID, creatorName)75 if err != nil {76 var postNotFound *fans.PostNotFoundErr77 if errors.As(err, &postNotFound) {78 return false, nil79 }...

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 browser := rod.New().Connect()4 defer browser.Close()5 page := browser.Page("")6 defer page.Close()

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 browser := rod.New().Connect()4 searchBox.Input("golang").Press("enter")5 page.WaitLoad()6 href, _ := firstResult.Attribute("href")7 fmt.Println(href)8}9import (10func main() {11 browser := rod.New().Connect()12 searchBox.Input("golang").Press("enter")13 page.WaitLoad()14 href, _ := firstResult.Attribute("href")15 fmt.Println(href)16}17import (18func main() {19 browser := rod.New().Connect()

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 browser := rod.New().Connect()4 input.Input("Hello World")5 input.Submit()6 fmt.Println("Done")7}

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 browser := rod.New().Connect()4 el.Input("rod")5 el.Press("Enter")6 page.WaitLoad()7 text, _ := el.Text()8 fmt.Println(text)9 browser.Close()10}11import (12func main() {13 browser := rod.New().Connect()14 el.Input("rod")15 el.Press("Enter")16 page.WaitLoad()17 text, _ := el.Text()18 fmt.Println(text)19 browser.Close()20}21import (22func main() {23 browser := rod.New().Connect()24 el.Input("rod")25 el.Press("Enter")26 page.WaitLoad()27 text, _ := el.Text()28 fmt.Println(text)29 browser.Close()30}31import (

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 r.ElementX()4}5import (6func main() {7 r.ElementY()8}9import (10func main() {11 r.ElementZ()12}13import (14func main() {15 r.ElementXY()16}17import (18func main() {19 r.ElementXZ()20}21import (22func main() {23 r.ElementYZ()24}25import (26func main() {27 r.ElementXYZ()28}29import (30func main() {31 r.Element()32}33import (34func main() {

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 r.ElementX()4 fmt.Println(r)5}6import (7func main() {8 r.ElementY()9 fmt.Println(r)10}11import (12func main() {13 r.ElementZ()14 fmt.Println(r)15}16import (17func main() {18 r.ElementW()19 fmt.Println(r)20}21import (22func main() {23 r.ElementV()24 fmt.Println(r)25}26import (27func main() {28 r.ElementU()29 fmt.Println(r)30}31import (32func main() {33 r.ElementT()34 fmt.Println(r)35}36import (37func main() {

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import (2func main() {3 r1 := rod.NewRod(1, 2, 3, 4)4 fmt.Println(r1.ElementX())5}6import (7func main() {8 r1 := rod.NewRod(1, 2, 3, 4)9 fmt.Println(r1.ElementY())10}11import (12func main() {13 r1 := rod.NewRod(1, 2, 3, 4)14 fmt.Println(r1.ElementZ())15}16import (17func main() {18 r1 := rod.NewRod(1, 2, 3, 4)19 r1.Print()20}21import (22func main() {23 r1 := rod.NewRod(1, 2, 3, 4)24 r2 := rod.NewRod(5, 6, 7, 8)25 r3 := r1.Add(r2)26 r3.Print()27}28import (29func main() {

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import "fmt"2import "github.com/rodlibrary/rod"3func main(){4 rod.ElementX(1,2)5 fmt.Println("Rod ElementX method")6}7import "fmt"8import "github.com/rodlibrary/rod"9func main(){10 rod.ElementY(1,2)11 fmt.Println("Rod ElementY method")12}13import "fmt"14import "github.com/rodlibrary/rod"15func main(){16 rod.ElementZ(1,2)17 fmt.Println("Rod ElementZ method")18}19import "fmt"20import "github.com/rodlibrary/rod"21func main(){22 rod.ElementW(1,2)23 fmt.Println("Rod ElementW method")24}25import "fmt"26import "github.com/rodlibrary/rod"27func main(){28 rod.ElementU(1,2)29 fmt.Println("Rod ElementU method")30}31import "fmt"32import "github.com/rodlibrary/rod"33func main(){34 rod.ElementV(1,2)35 fmt.Println("Rod ElementV method")36}37import "fmt"38import "github.com/rodlibrary/rod"39func main(){40 rod.ElementT(1,2)41 fmt.Println("Rod ElementT method")42}43import "fmt"44import "github.com/rodlibrary/rod"45func main(){46 rod.ElementS(1,2)47 fmt.Println("Rod ElementS method")48}49import "fmt"50import "github.com/rodlibrary/rod"51func main(){52 rod.ElementR(1,2)53 fmt.Println("Rod ElementR method")54}

Full Screen

Full Screen

ElementX

Using AI Code Generation

copy

Full Screen

1import "fmt"2func main() {3}4import "fmt"5func main() {6}7import "fmt"8func main() {9}10import "fmt"11func main() {12}13import "fmt"14func main() {15}16import "fmt"17func main() {18}19import "fmt"20func main() {21}22import "fmt"23func main() {24}

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Rod automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Most used method in

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful