We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Paste the output here
Win 10. I use Selenide 7.2.3, TestNG, maven.
I've installed Jenkins on local machine ( version Jenkins 2.452.2 ) and install Allure plugin:
import com.codeborne.selenide.Screenshots; import com.google.common.io.Files; import io.qameta.allure.Attachment; import java.io.File; import java.io.IOException; public class Screenshoter { @Attachment(value = "Page screenshot", type = "image/png") public static byte[] screenshot() { File screenshot = Screenshots.takeScreenShotAsFile(); byte[] result = null; try { result = Files.toByteArray(screenshot); } catch (IOException e) { System.err.println(e); } return result; } }
@Test(priority = 5) public void openByUsingEnvParam() throws IOException { Selenide.open("https://www.google.com/"); $(withText("text")).shouldBe(Condition.visible, Condition.enabled); Screenshoter.screenshot(); }
Attached screenshot in the Allure Report should be the homepage of Google.
What I want to see is actual content of web page, not the grey rectangle. Refer to screenshot:
What's more interesting is that if I run the same test via mvn clean test and then run mvn allure:serve then screenshot looks fine.
So my guess is that the issue is in allure jenkins plugin.
No response
The text was updated successfully, but these errors were encountered:
Hello. Same happens with me. Reported in #366
Sorry, something went wrong.
No branches or pull requests
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Win 10.
I use Selenide 7.2.3, TestNG, maven.
I've installed Jenkins on local machine ( version Jenkins 2.452.2 ) and install Allure plugin:
Reproduction steps
Expected Results
Attached screenshot in the Allure Report should be the homepage of Google.
Actual Results
What I want to see is actual content of web page, not the grey rectangle.
Refer to screenshot:
Anything else?
What's more interesting is that if I run the same test via mvn clean test and then run mvn allure:serve then screenshot looks fine.
So my guess is that the issue is in allure jenkins plugin.
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: