-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
I am trying to download a file from a specific website.
It is strange, as I actually had it work yesterday. closed everything yesterday after work, and this morning it doesn't work anymore....
And I cannot reproduce it anymore.... 😿
$browser = New-MonocleBrowser -Type Chrome
$Browser.url = "https://www.dell.com/support/security/en-us?lwp=rtt"
$SearchBoxElementID = "dds_prod-name-search"
#Setting things up to filter the search
Get-MonocleElement -Id $SearchBoxElementID | Set-MonocleElementValue -Value 'Latitude 5350'
$CheckBoxFilterId = "Latitude_5350-1_0"
#Fetching the checkbox (This fails...)
$CheckBox = Get-MonocleElement -XPath '//*[@id="Latitude_3550-1_0"]'
#Checking the checkbox
Set-MonocleElementAttribute -Element $CheckBox -Name 'Checked' -Value 'Checked'Is it possible that some elements are not visibile ?
I tried using the -All also, but no luck.
I also tried fetching the parent element in which that checkbox is located like this:
$e = Get-MonocleElement -XPath '//*[@id="productnamefield"]'
Get-MonocleElement -XPath '//*[@id="Latitude_3550-1_0"]' -Scope $eBut it still couldn't find it...
When I search for the first element of that list of checkboxes (which is HUGE!) It actually works:
Get-MonocleElement -XPath '//*[@id="Alienware_15-1_0"]'
WrappedDriver : OpenQA.Selenium.Chrome.ChromeDriver
TagName : input
Text :
Enabled : True
Selected : False
Location : {X=64,Y=1635}
Size : {Width=0, Height=0}
Displayed : False
LocationOnScreenOnceScrolledIntoView : {X=64,Y=360}
Coordinates : OpenQA.Selenium.Remote.RemoteCoordinatesSo would this mean it actually hits a timeout or so ?
When I try using -verbose we see it tries 30 times, and then it throws an error:
Metadata
Metadata
Assignees
Labels
No labels
