Closed
Bug 1726164
Opened 3 years ago
Closed 3 years ago
Cannot make a screenshoots of bootstrap modal window elements using selenium
Categories
(Firefox :: Screenshots, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1725343
People
(Reporter: 1105714, Unassigned)
Details
Attachments
(2 files)
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36
Steps to reproduce:
Steps su,,a
- Open https://getbootstrap.com/docs/4.0/components/modal/
- Scroll to the button "//*[@data-target='#exampleModalLive']"
- Click the button
- Make the screenshoot
Pure webdriver js script:
const { Builder, By, Key, until } = require('selenium-webdriver');
const fs = require('fs');
(async function example() {
let driver = await new Builder().forBrowser('firefox').build();
try {
await driver.get('https://getbootstrap.com/docs/4.0/components/modal/');
const button = await driver.findElement(By.xpath(`//*[@data-target='#exampleModalLive']`))
await driver.executeScript("arguments[0].scrollIntoView(true);", button);
await new Promise(r => setTimeout(r, 1000));
await driver.executeScript("window.scrollBy(0, 350);");
await new Promise(r => setTimeout(r, 3000));
await driver.executeScript("arguments[0].click();", button);
await new Promise(r => setTimeout(r, 3000));
const ss = new Buffer(await driver.takeScreenshot(), 'base64');
fs.writeFileSync('ss.png', ss);
} finally {
await driver.quit();
}
})();
Expected result: the viewport screenshot with the modal window:
image
Actual result: the viewport screenshot without the modal window:
Actual results:
The viewport screenshot don't have the modal window
Expected results:
The viewport screenshot should have the modal window
Attachment #9236645 -
Attachment description: ss.png → Actual Result.png
Comment 2•3 years ago
|
||
Hi!
Thanks for the report, I will add a proper Product and Component to this issue for visibility.
Regards,
Estanislao
Component: Untriaged → Widget: Cocoa
Product: Firefox → Core
Updated•3 years ago
|
Component: Widget: Cocoa → Screenshots
Product: Core → Firefox
Comment 3•3 years ago
|
||
Thanks for reporting! I think this work will be covered by Bug 1725343
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•