This topic contains 4 replies, has 2 voices, and was last updated by
September 8, 2015 at 10:43 am #29476
I am new to this community since I am only a beginner in PS.
I am trying to automate data upload to a certain website. I was able to dial and log in so so far. However, there is one part that I am stuck. I am trying to click a link which is under a certain title. Here how that looks like:
"a title="" href="https://......?alerts=1" target="_self">Inventory AlertsInventory Management
September 8, 2015 at 10:57 am #29479ParticipantPoints: 316Rank: Contributor
That is HTML, not Powershell. Are you creating a HTML Report from Powershell? Your question is vague and there is no Powershell code to look at. Please provide more information.
September 8, 2015 at 11:02 am #29481
Sorry about the confusing message. I was having trouble while I was posting.
Here is my code
# Initiate an internet explorer object
$ie = New-Object -com InternetExplorer.Application
$ie.Visible = $True
$url = "https://partners.wayfair.com/v/login/index?going_to=%2Forder_management.php"
# Enter login information
$ie.Document.getElementById("js-username").value = "username"
$ie.Document.getElementById("password_field").value = "password"
# Click Inventory Management under Inventory & EDI Tab or Dropdown menu
I am trying to click a drop down menu under Inventory & EDI tab.
When I inspect the elements this what I get
a title = "" href = "https://.....................................php?alerts=1" target="_self">Inventory Alerts
a title="" href = "https://.......................................php" target="_self">Inventory management
September 9, 2015 at 8:09 am #29546ParticipantPoints: 316Rank: Contributor
September 9, 2015 at 2:05 pm #29576
Thank you, Rob.
I have handled this part of the program with PowerShell.
There are many challenges waiting ahead though.
The topic ‘How to click a link under drop down menu’ is closed to new replies.