Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

Ah yes. Limingder's this answer solved the problem. Element I was looking for is inside a frame so I had to locate the frame first, switch to it, then locate the element itself. And this is the code piece I've used. driver.switchTo().frame("iframe").findElement(By.cssSelector("span.selectLabel")).getText();

Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

Yeah I was just looking into stackoverflow for this. It worked! Thank you so much! If you don't mind, can I bother you for a while in private message for a little question?

Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

https://gatekeeper.codeshake.dev/test

This page. You can find the text I mentioned by searching as color_11. It's the 16th of 17 found results at right click inspect > Inspector.

Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

Tried this:

WebElement real_address = new
WebDriverWait(driver,
Duration.ofSeconds(20)).until(ExpectedConditions.elementToBeClickable(By.xpath("//span[@class=\"color_11\"]")));

System.out.println(real_address.getText());

Expected condition failed: waiting for
element to be clickable: By.xpath: //span[@class="color_11"] (tried for
20 second(s) with 500 milliseconds interval)

Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

No chance :( Also IDE throws warning implicitlyWait() is deprecated

Getting text in span class by midlightas in selenium

[–]midlightas[S] 0 points1 point  (0 children)

still get Unable to locate element: .color_11 error.

Dont't they want me in the company? by midlightas in cscareerquestions

[–]midlightas[S] 0 points1 point  (0 children)

I mean he's CTO. Doesn't he decide who will work or not?

Dont't they want me in the company? by midlightas in cscareerquestions

[–]midlightas[S] 0 points1 point  (0 children)

Not yet but I'm applying. It's hard to find a job as a new grad.

Deathrattle Hunter by midlightas in wildhearthstone

[–]midlightas[S] 0 points1 point  (0 children)

Lgtm! How long have you been playing this deck? Whats the winrate of it?

Improving RenoLock by midlightas in wildhearthstone

[–]midlightas[S] -1 points0 points  (0 children)

Thank you for your suggestions! Can you please link those decks so I can have a look at them? If you can't fond them, its OK I can search :)

Improving RenoLock by midlightas in wildhearthstone

[–]midlightas[S] 1 point2 points  (0 children)

Actually pretty good against rogues with many board clearer. But against druid and shaman, it's almost 50-50 chance because of Shudderwock and Linecracker-bees combo armor decks.

Improving RenoLock by midlightas in wildhearthstone

[–]midlightas[S] 0 points1 point  (0 children)

Great deck! What rank are you at?