Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:46
    dineshkumarravi commented #748
  • Oct 21 21:06
    BorisOsipov assigned #1619
  • Oct 21 21:00
    asolntsev synchronize #1618
  • Oct 21 21:00

    asolntsev on improve-and-or-actual-value

    make output of "and" and "or" c… make output of "and" and "or" c… #1581 improve format of actual … and 2 more (compare)

  • Oct 21 20:53
    asolntsev commented #1593
  • Oct 21 20:52
    asolntsev closed #1612
  • Oct 21 20:52

    asolntsev on split-to-artifacts

    (compare)

  • Oct 21 20:52

    asolntsev on master

    * #1593 Publish Selenide as sep… (compare)

  • Oct 21 20:52
    asolntsev closed #1593
  • Oct 21 20:46
    asolntsev synchronize #1618
  • Oct 21 20:46

    asolntsev on improve-and-or-actual-value

    #1581 improve format of actual … (compare)

  • Oct 21 20:41
    BorisOsipov opened #1619
  • Oct 21 20:39

    BorisOsipov on cleanup_configuration

    Cleanup configuration (compare)

  • Oct 21 19:52
    asolntsev synchronize #1618
  • Oct 21 19:52

    asolntsev on improve-and-or-actual-value

    #1581 improve format of actual … (compare)

  • Oct 21 15:04
    asolntsev synchronize #1618
  • Oct 21 15:04

    asolntsev on improve-and-or-actual-value

    make output of "and" and "or" c… make output of "and" and "or" c… (compare)

  • Oct 21 14:46
    petroOv-PDFfiller synchronize #1601
  • Oct 21 13:47
    petroOv-PDFfiller synchronize #1601
  • Oct 21 11:17
    asolntsev labeled #1617
Andrei Solntsev
@asolntsev
Then there are some working examples on github: https://github.com/selenide-examples/testcontainers
Sajan
@woodsongem
yeah thanks @asolntsev for your response.
Sajan
@woodsongem
Hello All,
How to capture javascript errors using selenide. I found the reference below. I would like to capture only Javascript errors. Which log level will be suitable for this instead of Level.ALL)?
https://selenide.org/2019/12/16/advent-calendar-browser-logs/
Andrei Solntsev
@asolntsev
I don't know exactly. Can't you just try all levels?
Sajan
@woodsongem
Thanks for your response @asolntsev . I can do that. How can I filter only errors from all levels ? because I didn't see any log level is error.
Andrei Solntsev
@asolntsev
Still, I don't know exactly. Can't you just try all levels?
Andrei Solntsev
@asolntsev

Released Selenide 5.23.0: "New generation checks”

https://selenide.org/2021/07/16/selenide-5.23.0/

Sajan
@woodsongem
yeah sure thanks
Konstantins
@ktarasjuks

[INFO] Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 90.826 s - in runners.PaymentsRunner
why doesnt count as passed or failed? using selenide allure for reports and after this the allure reports are empty..
to launch tests using standard mvn clean test command
SelenideLogger.addListener("AllureSelenide", new AllureSelenide().screenshots(true).savePageSource(false));
is in before steps...
POM build steps:
<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>${maven-clean-plugin.version}</version>
<configuration>
<filesets>
<fileset>
<directory>test-output</directory>
<includes>
<include>/*</include>
</includes>
<followSymlinks>false</followSymlinks>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<includes>
<include>
/Runner.java</include>
</includes>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
</plugins>
</build>

all others sample project works fine.. what i am doing wrong :(

Cucumber+ junit4 + selenide + allure

package runners;

import io.cucumber.junit.Cucumber;
import io.cucumber.junit.CucumberOptions;
import org.junit.runner.RunWith;

@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"pretty",
"html:target/cucumber/cucumber-html-report",
"junit:target/cucumber/cucumber-junit-report.xml",
"json:target/cucumber/cucumber.json"},
tags = "@SmokeTests",
features = {"src/test/resources/features"},
glue = {"steps"}
)
public class PaymentsRunner {
}

Andrei Solntsev
@asolntsev
This question is not related to Selenide. It’s rather about Cucumber or Allure.
Sajan
@woodsongem

Hello @asolntsev ,
I am getting below error while select value in dropdown. Any idea?
Error: Cannot locate option with value: Test
Code:selenideElement.selectOptionByValue("Test")

TIA

Sajan
@woodsongem

in chrome browser HTML code:

<option label="Test" value="string:Test">Test</option>

Selenide code: this.element.findElements(By.xpath(".//option[@value = " + Quotes.escape(value) + "]")

not sure why angular is adding string in front of the value.

Andrei Solntsev
@asolntsev
That’s the point: its value is string:Test, not Test.
Try using selenideElement.selectOption("Test”) instead. It will find option by text, not by value.
Sajan
@woodsongem
thanks @asolntsev for your response. we don't want to check text because it keeps on changing text, not value.
we bind only a value called "Test" not "string:Test". might be I have to loop through options to get an index and select proper index.
Andrei Solntsev
@asolntsev
I don’t understand. When you loop through options, how do you find the right option? You still need to check its text or value. You will get the same problem.
Devon Jones
@devmjones
How do I integrate Selenide/TestNg with Saucelabs? I see a ton of Sauce related Maven dependencies for Saucelabs, but I can't find any example project that shows how the logic to run locally vs via Saucelabs is implemented. Do the config options go in the pom.xml? A config file?
Andrei Solntsev
@asolntsev
damu
@zmmx011

Hi. selenide download to random path selenide/selenide#1220

<timestamp><pid><thread_id> how do I disable this feature?

Andrei Solntsev
@asolntsev
@zmmx011 this is a common question :)
Most probably you don't need to disable this feature. You shouldn't really care about the downloads folder because method $.download() returns the File instance - just use it. No need to search the file.
damu
@zmmx011
@asolntsev $.download() is element have href attribute.. but in my case download element haven't href attribute, so i used $.click(). problem is I want to scan the downloaded file but I don't know the path
Andrei Solntsev
@asolntsev
@zmmx011 try setting Configuration.fileDownload = FOLDER - then method "$.download will not require href anymore.
Andrei Solntsev
@asolntsev

Good evening!

We released a small update Selenide 5.23.3 with a fix for downloading "potentially harmful" files in Chrome (like .exe and .dmg files).

https://github.com/selenide/selenide/releases/tag/v5.23.3

Saikat Sengupta
@s4ik4t

Trying to explore Selenide 6 beta with Selenium 4 however for some weird reason the dependency tree is looking like this:

[INFO] +- com.codeborne:selenide:jar:6.0.0-beta-1-SNAPSHOT:test
[INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-api:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-edge-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-opera-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-safari-driver:jar:3.141.59:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:3.141.59:test
[INFO] |  |  +- net.bytebuddy:byte-buddy:jar:1.10.22:test
[INFO] |  |  +- org.apache.commons:commons-exec:jar:1.3:test
[INFO] |  |  +- com.squareup.okhttp3:okhttp:jar:3.14.9:test
[INFO] |  |  \- com.squareup.okio:okio:jar:1.14.0:test

Why on earth Selenium 3 is loaded here?

Andrei Solntsev
@asolntsev
I see another tree in my test project.

Did you add these lines to your build.gradle?

configurations.all {
  resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}

(it says Gradle to always fetch the latest snapshot dependency)

3 replies
Andrei Solntsev
@asolntsev

Released Selenide 5.24.0:

Judgement day!

https://selenide.org/2021/08/29/selenide-5.24.0/

Leonidas Mitrou
@lemitrou
Hi there
i start migrate some test from pure selenium to selenide
and i get Sizzle is not defined , in some test and runs
any idea?
Andrei Solntsev
@asolntsev

@lemitrou Wow, great news!
Welcome to the Selenide world!

How can we know it without seeing your code? What exactly did you migrate? Did you set Configuration.selectorMode = SIZZLE?

Leonidas Mitrou
@lemitrou

@lemitrou Wow, great news!
Welcome to the Selenide world!

How can we know it without seeing your code? What exactly did you migrate? Did you set Configuration.selectorMode = SIZZLE?

I've set the selector mode to SelectorMode.Sizzle. I use in my Page Objects extensively css3 selectors - its full of :contains, so when i saw that selenide support Sizzle, i selected with closed eyes

8 replies
Sajan
@woodsongem

Hello All,
Currently I am using 5.24.2 version and trying to upgrade latest version 5.24.2 and missing file.

Error Message: java: com.codeborne.selenide.impl.StaticConfig is not public in com.codeborne.selenide.impl; cannot be accessed from outside package
<groupId>com.codeborne</groupId>
<artifactId>selenide</artifactId>
<version>5.24.2</version>

Andrei Solntsev
@asolntsev
@woodsongem See release notes for Selenide 5.23.0: https://selenide.org/2021/07/16/selenide-5.23.0/
7 replies
We made classes StaticConfig and StaticDriver non-public.
It seems they shouldn’t be needed outside of Selenide. Do you occasionally use them in your project? Contact us if you are sure you need them.
zhangdanyang95
@zhangdanyang95
@asolntsev how to start own proxy
zhangdanyang95
@zhangdanyang95
want to download file by proxy,but with remote node happend to the error:(I do like this https://selenide.org/2019/12/10/advent-calendar-download-files/,how can I creat proxy in remote node)
org.openqa.selenium.WebDriverException:
unknown error: net::ERR_PROXY_CONNECTION_FAILED
(Session info: chrome=92.0.4515.159)
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: ', ip: '', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-957.el7.x86_64', java.version: '11.0.6'
selenide.remote: http://*.*.*.*:*/wd/hub
Driver info: org.openqa.selenium.remote.RemoteWebDriver;
Andrei Solntsev
@asolntsev
No, you cannot create proxy on remote node. It's only possible to start proxy process on the remote machine.
Do you use Selenoid or Selenium Grid?
zhangdanyang95
@zhangdanyang95
@asolntsev thanks you very much.I use Selenium Grid. To start proxy process on the remote machine.That means means to start selenoidProxyServer on remote machine or creat a common proxy process? how to start a common proxy ,can you give me a case document.
Andrei Solntsev
@asolntsev
It's just impossible from one machine to start a process on other machine. Otherwise hackers would run million proxy servers on your machine. :)
AFAIK you cannot use proxy with selenium grid.
zhangdanyang95
@zhangdanyang95
@asolntsev How can I download a file from remote node with the selenide?
Andrei Solntsev
@asolntsev
@zhangdanyang95 The easiest way is using Configuration.fileDownload = FOLDER. Did you try it?
P.S. I was wrong: it’s possible to use proxy with Selenoid Grid, but ONLY if your machine is accessible from the Grid machine. In this case the proxy is still run on your machine. And you need to set Configuration.proxyHost = “your IP under which your machine is accessible from grid nachine”;
itsMeAnton
@itsMeAnton

Hi! I want to use some custom command with parameter like this: element.execute(someSpecialSet(value)). But looks like it is possible to do only with creation of new instance of my Command class like this element.execute(new SomeSpecialSet(value)). Am I right? Or there is way to do it without "new"?

I mean, is it possible to pass my parameter via execute(.. , Object[] args) instead of passing it via Command's constructor?