I have 3 webpages. I want to automatically loop through different webpages for 10 times using selenium. How to do it?
Related
I am currently trying to use JS and puppeteer to take a screenshot of every url in my web app, as well as take a screenshot of every button that can be clicked. Is there a way to click each button without specifying the id? Not all of my buttons have an id and even if they did, I wouldn't want to have x number of page.click(id, options) for each button I have (which is quite a lot).
Thanks
I have tried going based off each className (this app is built using react) but this does not work. It will take a screenshot of the same buttons over and over. I believe because if page.click has multiple of the same options, it only chooses the first one and many buttons have the same styling classNames.
You could get an array of each element on a page, go through the elements with a for loop determine if it is a button, then click it. Then for each page you'd have to input each url in an array and then use a for loop to go through it.
I have an array of Web Pages and LOCAL HTML files that I want to display using the Web Browser control in a VB.Net application. I set the navigate property from the first file in my array and I get to it OK. I want to stay there for some interval, then display the next one. I set a timer after I navigate to the first one then want to navigate to the second one after the timer pop but It flashes the first one then the second one. Is there method I can use to hold the first one for some interval, then display the second, then the third ETC?
Thanks
Bill
I'm using vb.net and was able to One play video on DISPLAY 1 or 2 or 3. But I want to play 2 videos at the same time. And I want one to play on display 2 and the other at display 3. They don't have to start at the same time. But the goal is to play a video on DISPLAY 3 while there's already one playing on DISPLAY 2. I made a windows media Player on form 2, and another wmp on form 3. If I Play a video on form 2 to be displayed on display 2, there's no problem. But when I called another task to play another video on form 3 to be displayed on display 3, It opens form3 but doesn't play the video on windows media player that's in that form. Why?
In VB.NET, I have a windows form where I have a WebBrowser component. I am using proxies to navigate to pages and some proxies are dead/too slow so I want the program to switch to another proxy.
My question is, how can I detect if the WebBrowser has been trying to load the page for a set period of time e.g. it has been 5 seconds since it has been trying to load the page fully?
I am using HTML elements to automate the web browser btw, not sure if this is relevant information though.
I'm designing a page in SharePoint 2010 which would have 10 WebCharts in it.
And on top of that page, I have to keep one drop down control which should allow the user to select different set of WebCharts as per the options they select.
For instance - if the user selects the Option-A, then he should be provided with first 5 charts and when he goes for Option-B, then he should be provided with next 5 charts. On the other hand, if he selects 'All' then he should be provided with all the 10 charts.
I have spent more time in searching for some relevant thread, but couldn't find the needed one. So please help in achieving this requirement.
Thanks for your help!
you can do this with a bit of js and css.
it will still load all charts, but if thats okay, then you can try this.
create you ddl, capture the selection.
if you wrap your charts with a div for the first 5 and a second div for the other 5 charts you can do something like
option a
$('#divA').show();
$('#divA').hide();
option b
$('#divA').hide();
$('#divB').show();
option c
$('#divA').show();
$('#divA').show();
for capturing the change event you can easily find other posts
Detect when a specific <option> is selected with jQuery
you will also have to inject a display none into the second div, since I assume you want option a visible by default.
you can use cookies to persist the change.
good luck