Cameronsmith63
14 years agoOccasional Contributor
Write to file
Hey There,
I need a method that copy and pastes some text from a webpage, stores it in a variable, and that variable will be used to
write to a text file.
It seems simple, i just cant figure it out. Sorry for the noob question.
I have provided a pic, and i need the order numbers to be copied out and written to a text file, i got the write to method
right...I have used that checkpoint option but as new orders come in, the script will fail because TC will be looking for
the exact value, that being:
Aliases.WinOrbit.FrameForm.ctl_panelMain.ctl_panelWork.HeaderControl.CustomerWorkspace.pnlBrowse.tabWorkspace.TabPage.SupportApplicationControl.panel1.tabControl.TabPage.BrowserControl.containerPanel.SupportApplicationWebBrowser.WebBrowserBaseNativeWindow.ShellDocObjectView.browser.pageViewCustomerOrders.formAspnetform.panelContainer.table.cell.panel.panelCtl00Updatepanel1.panelContent.panelDialogbody.panel.tableCtl00BodyGrdorders.cell.link105015
So as you can see, BodyGrdorders.cell.link105015, 105015 would be a problem because the order numbers change everytime, im trying to make this as dynamic as possible to cater for all, or different order numbers
Regards
I need a method that copy and pastes some text from a webpage, stores it in a variable, and that variable will be used to
write to a text file.
It seems simple, i just cant figure it out. Sorry for the noob question.
I have provided a pic, and i need the order numbers to be copied out and written to a text file, i got the write to method
right...I have used that checkpoint option but as new orders come in, the script will fail because TC will be looking for
the exact value, that being:
Aliases.WinOrbit.FrameForm.ctl_panelMain.ctl_panelWork.HeaderControl.CustomerWorkspace.pnlBrowse.tabWorkspace.TabPage.SupportApplicationControl.panel1.tabControl.TabPage.BrowserControl.containerPanel.SupportApplicationWebBrowser.WebBrowserBaseNativeWindow.ShellDocObjectView.browser.pageViewCustomerOrders.formAspnetform.panelContainer.table.cell.panel.panelCtl00Updatepanel1.panelContent.panelDialogbody.panel.tableCtl00BodyGrdorders.cell.link105015
So as you can see, BodyGrdorders.cell.link105015, 105015 would be a problem because the order numbers change everytime, im trying to make this as dynamic as possible to cater for all, or different order numbers
Regards